blob: ba8d2fe40b6dca45e5293fb9d23b5ecb55c121e1 (
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# New ports collection makefile for: libgphoto2
# Date created: 26 May 1999
# Whom: Anders Nordby <anders@fix.no>
#
# $FreeBSD$
#
PORTNAME= libgphoto2
PORTVERSION= 2.1.2
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= gphoto
MAINTAINER= ports@FreeBSD.org
COMMENT= A universal digital camera picture control tool
LIB_DEPENDS= intl.4:${PORTSDIR}/devel/gettext \
usb-0.1.7:${PORTSDIR}/devel/libusb \
exif.10:${PORTSDIR}/graphics/libexif
USE_BZIP2= yes
USE_REINPLACE= yes
USE_GNOME= gnometarget pkgconfig
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
INSTALLS_SHLIB= yes
PLIST_SUB= PORTVERSION=${PORTVERSION}
MAN3= libgphoto2.3 libgphoto2_port.3
post-patch:
.for file in configure libgphoto2_port/configure
@${REINPLACE_CMD} -e \
's|[{]libdir[}]/pkgconfig|{prefix}/libdata/pkgconfig|g ; \
s|-g ||g' ${WRKSRC}/${file}
.endfor
@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
's|po packaging doc|po doc|g ; \
s|: install-docDATA|:|g'
@${FIND} ${WRKSRC} -name "*.[ch]" | ${XARGS} ${REINPLACE_CMD} -e \
's|<malloc\.h>|<stdlib.h>|g'
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for file in AUTHORS NEWS README
${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>
|