blob: 197059692bfdf15c5995c2e62e48fc3acdd0ae16 (
plain) (
blame)
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# New ports collection makefile for: gphoto
# Date created: 26 May 1999
# Whom: Anders Nordby <anders@fix.no>
#
# $FreeBSD$
#
PORTNAME= gphoto2
PORTVERSION= 2.1.0
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
http://www.gphoto.net/dist/
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.5:${PORTSDIR}/devel/libusb \
aa.1:${PORTSDIR}/graphics/aalib \
jpeg.9:${PORTSDIR}/graphics/jpeg \
exif.5:${PORTSDIR}/graphics/libexif
RUN_DEPENDS= pkg-config:${PORTSDIR}/devel/pkgconfig
USE_BZIP2= yes
USE_REINPLACE= yes
USE_GLIB= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}"
CONFIGURE_ARGS= --without-cdk --without-fig2dev --without-xmlto
INSTALLS_SHLIB= yes
MAN1= gphoto2.1
MAN3= gphoto2.3 gphoto2_port.3
post-patch:
.for file in configure libgphoto2_port/configure
@${REINPLACE_CMD} -e 's|-g -Wall||g ; \
s|-pthread|${PTHREAD_LIBS:S/"//g}|g' ${WRKSRC}/${file}
.endfor
@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
's|`glib-config|`\$$(GLIB_CONFIG)|g ; \
s| install-docDATA||g ; \
s| install-figureDATA||g ; \
s|[(]libdir[)]/pkgconfig|(prefix)/libdata/pkgconfig|g'
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for file in AUTHORS NEWS README doc/FAQ doc/gphoto2-cli.txt doc/gphoto2.txt
${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>
|