openbsd-ports/graphics/gphoto2/Makefile

47 lines
1.1 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.21 2011/11/13 17:15:59 ajacoutot Exp $
2003-04-09 19:55:37 -04:00
2010-11-09 13:22:26 -05:00
COMMENT = digital camera command-line interface
CATEGORIES = graphics
2003-04-09 19:55:37 -04:00
2010-11-09 13:22:26 -05:00
MAINTAINER = Marc Espie <espie@openbsd.org>
2003-04-09 19:55:37 -04:00
VERSION = 2.4.11
2010-11-09 13:22:26 -05:00
DISTNAME = gphoto2-${VERSION}
PKGNAME = gphoto-${VERSION}
2003-04-09 19:55:37 -04:00
2010-11-09 13:22:26 -05:00
HOMEPAGE = http://gphoto.sourceforge.net/
2003-04-09 19:55:37 -04:00
2010-11-09 13:22:26 -05:00
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=gphoto/}
2003-04-09 19:55:37 -04:00
# GPLv2
2010-11-09 13:22:26 -05:00
PERMIT_PACKAGE_FTP = Yes
PERMIT_PACKAGE_CDROM = Yes
PERMIT_DISTFILES_FTP = Yes
PERMIT_DISTFILES_CDROM = Yes
WANTLIB += c exif gphoto2 gphoto2_port jpeg ltdl m ncurses popt
WANTLIB += pthread readline usb usb-1.0
2003-04-09 19:55:37 -04:00
2010-11-09 13:22:26 -05:00
USE_LIBTOOL = Yes
USE_GROFF = Yes
2003-04-09 19:55:37 -04:00
2010-11-09 13:22:26 -05:00
MAKE_FLAGS = INTLLIBS='$$(LTLIBINTL)'
2010-11-09 13:22:26 -05:00
CONFIGURE_STYLE = gnu
CONFIGURE_ARGS = ${CONFIGURE_SHARED} \
--without-aalib \
--without-cdk
2010-11-09 13:22:26 -05:00
CONFIGURE_ENV = CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib" \
POPT_CFLAGS="-I${LOCALBASE}/include" \
POPT_LIBS="-I${LOCALBASE}/lib -lpopt"
2010-11-09 13:22:26 -05:00
MODULES = devel/gettext
LIB_DEPENDS = graphics/libgphoto2>=2.4.11 \
2010-11-17 03:05:12 -05:00
devel/popt
2003-04-09 19:55:37 -04:00
pre-configure:
perl -pi -e 's,-lpthread,-pthread,g' ${WRKSRC}/configure
2003-04-09 19:55:37 -04:00
.include <bsd.port.mk>