diff options
author | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2003-01-03 20:27:22 +0000 |
---|---|---|
committer | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2003-01-03 20:27:22 +0000 |
commit | 777e3e2d7761dc74a268a5484051389aac2a0ef4 (patch) | |
tree | 6ba2da0620df0adabdacbf1091785122fb88c79d /graphics/libgphoto2/Makefile | |
parent | Update to 1.5 (diff) |
add libgphoto2 2.1.1
A universal digital camera picture control tool
PR: 46596
Submitted by: Ports Fury
Diffstat (limited to 'graphics/libgphoto2/Makefile')
-rw-r--r-- | graphics/libgphoto2/Makefile | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/graphics/libgphoto2/Makefile b/graphics/libgphoto2/Makefile new file mode 100644 index 000000000000..c45da71ddbdf --- /dev/null +++ b/graphics/libgphoto2/Makefile @@ -0,0 +1,58 @@ +# New ports collection makefile for: libgphoto2 +# Date created: 26 May 1999 +# Whom: Anders Nordby <anders@fix.no> +# +# $FreeBSD$ +# + +PORTNAME= libgphoto2 +PORTVERSION= 2.1.1 +CATEGORIES= graphics +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= gphoto + +MAINTAINER= ports@FreeBSD.org + +BUILD_DEPENDS= pkg-config:${PORTSDIR}/devel/pkgconfig +LIB_DEPENDS= intl.4:${PORTSDIR}/devel/gettext \ + usb-0.1.7:${PORTSDIR}/devel/libusb \ + exif.8:${PORTSDIR}/graphics/libexif +RUN_DEPENDS= pkg-config:${PORTSDIR}/devel/pkgconfig + +USE_BZIP2= yes +USE_REINPLACE= yes +USE_GMAKE= yes +GNU_CONFIGURE= yes +CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL} +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib" +INSTALLS_SHLIB= yes + +MAN3= gphoto2.3 gphoto2_port.3 + +post-patch: +.for file in configure libgphoto2_port/configure + @${REINPLACE_CMD} -e \ + 's|[{]libdir[}]/pkgconfig|{prefix}/libdata/pkgconfig|g ; \ + s|-g -Wall||g' ${WRKSRC}/${file} +.endfor + @${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \ + 's|po packaging doc|po doc|g ; \ + s|: install-docDATA|:|g' + @${FIND} ${WRKSRC} -name "*.[ch]" | ${XARGS} ${REINPLACE_CMD} -e \ + 's|<malloc\.h>|<stdlib.h>|g' + +post-install: +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} +.for file in AUTHORS NEWS README + ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR} +.endfor + @${MKDIR} ${PREFIX}/share/doc/libgphoto2_port +.for file in AUTHORS NEWS README + ${INSTALL_DATA} ${WRKSRC}/libgphoto2_port/${file} \ + ${PREFIX}/share/doc/libgphoto2_port +.endfor +.endif + +.include <bsd.port.mk> |