summaryrefslogtreecommitdiff
path: root/graphics/gphoto2/Makefile
blob: 5f43ce539fcb8386633d9f44c042d2f3a212cf9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# $NetBSD: Makefile,v 1.2 2001/07/08 21:47:21 veego Exp $

DISTNAME=	gphoto-2.0beta1
PKGNAME=	gphoto-2.0beta1nb1
CATEGORIES=	graphics
MASTER_SITES=	http://www.gphoto.net/dist/

MAINTAINER=	root@garbled.net
HOMEPAGE=	http://www.gphoto.org/gphoto2/
COMMENT=	Download and view files from various digital cameras

DEPENDS+=	libusb-*:../../devel/libusb

USE_GMAKE=		yes
USE_LIBTOOL=		yes
LTCONFIG_OVERRIDE=	${WRKSRC}/ltconfig
#LIBTOOL_OVERRIDE=	yes
GNU_CONFIGURE=		yes
CPPFLAGS+=		-I${LOCALBASE}/include
CONFIGURE_SCRIPT=	${WRKSRC}/build.sh
CONFIGURE_ARGS+=	--with-html-dir=${LOCALBASE}/share/doc/html/gphoto2
.include "../../devel/gettext-lib/buildlink.mk"

post-patch:
	${RM} -f ${LTCONFIG_OVERRIDE} ;                         \
	${ECHO} "${RM} -f libtool; ${LN} -s ${LIBTOOL} libtool" \
	        > ${LTCONFIG_OVERRIDE} ;                        \
	${CHMOD} +x ${LTCONFIG_OVERRIDE} ;                      \

pre-configure:
	for i in `find ${WRKSRC} -name Makefile.in`;		\
	do							\
		${CP} $$i $$i.NB;				\
		${SED} -e 's/\/\.libs//g' < $$i.NB > $$i;		\
	done							\

.include "../../mk/bsd.pkg.mk"