1999-06-06 19:22:13 +02:00
|
|
|
# New ports collection makefile for: gphoto
|
|
|
|
# Date created: 26 May 1999
|
|
|
|
# Whom: Anders Nordby <anders@fix.no>
|
|
|
|
#
|
1999-08-25 08:16:32 +02:00
|
|
|
# $FreeBSD$
|
1999-06-06 19:22:13 +02:00
|
|
|
#
|
|
|
|
|
2002-03-08 01:37:10 +01:00
|
|
|
PORTNAME= gphoto2
|
2006-12-28 23:14:53 +01:00
|
|
|
PORTVERSION= 2.3.1
|
1999-06-06 19:22:13 +02:00
|
|
|
CATEGORIES= graphics
|
2003-01-03 21:29:18 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
2002-05-14 04:31:03 +02:00
|
|
|
MASTER_SITE_SUBDIR= gphoto
|
2001-12-24 11:37:45 +01:00
|
|
|
|
2006-06-19 23:13:03 +02:00
|
|
|
MAINTAINER= pav@FreeBSD.org
|
2003-02-20 19:08:19 +01:00
|
|
|
COMMENT= A command-line frontend to libgphoto2
|
1999-06-06 19:22:13 +02:00
|
|
|
|
2003-01-03 21:29:18 +01:00
|
|
|
LIB_DEPENDS= popt.0:${PORTSDIR}/devel/popt \
|
2002-03-08 01:37:10 +01:00
|
|
|
aa.1:${PORTSDIR}/graphics/aalib \
|
2002-03-30 23:59:16 +01:00
|
|
|
jpeg.9:${PORTSDIR}/graphics/jpeg \
|
2003-01-03 21:29:18 +01:00
|
|
|
gphoto2.2:${PORTSDIR}/graphics/libgphoto2
|
1999-06-06 19:22:13 +02:00
|
|
|
|
2003-10-28 23:16:05 +01:00
|
|
|
USE_GNOME= gnometarget
|
2006-03-29 08:56:19 +02:00
|
|
|
USE_BZIP2= yes
|
2002-03-08 01:37:10 +01:00
|
|
|
USE_GMAKE= yes
|
|
|
|
GNU_CONFIGURE= yes
|
2004-12-20 09:47:41 +01:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
|
2006-12-07 18:05:45 +01:00
|
|
|
CONFIGURE_ARGS= --without-cdk --mandir=${PREFIX}/man
|
1999-06-06 19:22:13 +02:00
|
|
|
|
2002-03-08 01:37:10 +01:00
|
|
|
MAN1= gphoto2.1
|
|
|
|
|
2004-12-20 09:47:41 +01:00
|
|
|
CPPFLAGS= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
|
|
|
|
LDFLAGS= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
|
|
|
|
|
|
|
|
.if defined(WITHOUT_NLS)
|
|
|
|
CONFIGURE_ARGS+= --disable-nls
|
|
|
|
PLIST_SUB+= NLS="@comment "
|
|
|
|
.else
|
|
|
|
USE_GETTEXT= yes
|
|
|
|
PLIST_SUB+= NLS=""
|
|
|
|
.endif
|
|
|
|
|
2007-01-10 18:58:13 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${OSVERSION} < 500000
|
|
|
|
BROKEN= does not compile with gcc 2.95
|
|
|
|
.endif
|
|
|
|
|
2002-03-08 01:37:10 +01:00
|
|
|
post-patch:
|
2003-10-28 23:16:05 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREADS_LIBS:S/"//g}|g ; \
|
2003-01-03 21:29:18 +01:00
|
|
|
s|-g -Wall||g' ${WRKSRC}/configure
|
2002-05-14 04:31:03 +02:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
2002-07-02 20:44:43 +02:00
|
|
|
.for file in AUTHORS NEWS README
|
2003-01-03 21:29:18 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
|
2002-05-14 04:31:03 +02:00
|
|
|
.endfor
|
|
|
|
.endif
|
1999-06-06 19:22:13 +02:00
|
|
|
|
2007-01-10 18:58:13 +01:00
|
|
|
.include <bsd.port.post.mk>
|