aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
Diffstat (limited to 'graphics')
-rw-r--r--graphics/gphoto2/Makefile42
1 files changed, 17 insertions, 25 deletions
diff --git a/graphics/gphoto2/Makefile b/graphics/gphoto2/Makefile
index f50b7da60bf4..6fea07c9c9ee 100644
--- a/graphics/gphoto2/Makefile
+++ b/graphics/gphoto2/Makefile
@@ -7,53 +7,45 @@ CATEGORIES= graphics
MASTER_SITES= SF/gphoto/gphoto/${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
-COMMENT= A command-line frontend to libgphoto2
+COMMENT= Command-line frontend to libgphoto2
+
+LICENSE= GPLv2
LIB_DEPENDS= popt:${PORTSDIR}/devel/popt \
gphoto2:${PORTSDIR}/graphics/libgphoto2
-USES= pkgconfig
+USES= gmake pkgconfig
USE_BZIP2= yes
-USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --without-cdk
-MAKE_JOBS_SAFE= yes
-
-MAN1= gphoto2.1
+# XXX: do we still need to pass PTHREAD_* stuff here?
CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
+MAN1= ${PORTNAME}.1
+
OPTIONS_DEFINE= AALIB DOCS NLS
OPTIONS_DEFAULT= AALIB
-AALIB_DESC= Command line capture preview (aalib)
+OPTIONS_SUB= yes
-.include <bsd.port.options.mk>
+AALIB_DESC= Text mode capture preview support
-.if ${PORT_OPTIONS:MAALIB}
-LIB_DEPENDS+= aa:${PORTSDIR}/graphics/aalib \
- jpeg:${PORTSDIR}/graphics/jpeg
-.else
-CONFIGURE_ARGS+=--without-aalib --without-jpeg
-.endif
+AALIB_LIB_DEPENDS= aa:${PORTSDIR}/graphics/aalib
+AALIB_CONFIGURE_ARGS= --without-aalib
-.if ${PORT_OPTIONS:MNLS}
-USES+= gettext
-PLIST_SUB+= NLS=""
-.else
-CONFIGURE_ARGS+= --disable-nls
-PLIST_SUB+= NLS="@comment "
-.endif
+NLS_USES= gettext
+NLS_CONFIGURE_OFF= --disable-nls
+
+.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREADS_LIBS:S/"//g}|g ; \
- s|-g -Wall||g' ${WRKSRC}/configure
+ s|-g -Wall||g' ${WRKSRC}/configure
post-install:
.if ${PORT_OPTIONS:MDOCS}
-.for file in NEWS
- ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
-.endfor
+ ${INSTALL_DATA} ${WRKSRC}/NEWS ${DOCSDIR}
.endif
.include <bsd.port.mk>