Hi, I'm new on FreeBSD and this is my first porting...so be patient
I would want to modify the exif port (I would add two new options).
I modified some source files (.c) of exif, using some external files .c and .h as libraries; I temporarily copy the content of these external files in an internal file of exif (utils.c) then I compile with make, but clearly this is not the correct approach.
My goal is to add these external files as libraries of exif....I make a .so file, but I don't know how to include this dependency in the makefile...so I think that a workaround could be to add the dependency in the 'overall' makefile of the port.
This is the original makefile of the port:
How I can modify this file? Suppose that my lib is: lib.so..could you help me?
I would want to modify the exif port (I would add two new options).
I modified some source files (.c) of exif, using some external files .c and .h as libraries; I temporarily copy the content of these external files in an internal file of exif (utils.c) then I compile with make, but clearly this is not the correct approach.
My goal is to add these external files as libraries of exif....I make a .so file, but I don't know how to include this dependency in the makefile...so I think that a workaround could be to add the dependency in the 'overall' makefile of the port.
This is the original makefile of the port:
Code:
# Created by: Pav Lucistnik <pav@FreeBSD.org>
# $FreeBSD$
PORTNAME= exif
PORTVERSION= 0.6.21
CATEGORIES= graphics
MASTER_SITES= SF/lib${PORTNAME}/${PORTNAME}/${PORTVERSION}
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Command line utility to read and manipulate EXIF data
LICENSE= LGPL21
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libexif.so:${PORTSDIR}/graphics/libexif \
libpopt.so:${PORTSDIR}/devel/popt
OPTIONS_DEFINE= NLS
OPTIONS_SUB= yes
CONFIGURE_ENV = POPT_CFLAGS=-I${LOCALBASE}/include POPT_LIBS="-L${LOCALBASE}/lib -lpopt"
CPE_VENDOR= curtis_galloway
GNU_CONFIGURE= yes
USES= cpe gmake localbase pkgconfig
NLS_CONFIGURE_ON= --enable-nls ${ICONV_CONFIGURE_ARG}
NLS_CONFIGURE_OFF= --disable-nls --without-libiconv-prefix
NLS_USES= gettext iconv
.include <bsd.port.mk>
How I can modify this file? Suppose that my lib is: lib.so..could you help me?