2013-03-18 18:10:57 +01:00
|
|
|
# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
|
2011-08-31 11:14:15 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= multican
|
|
|
|
DISTVERSION= 0.0.5
|
2013-03-18 18:10:57 +01:00
|
|
|
PORTREVISION= 1
|
2011-08-31 11:14:15 +02:00
|
|
|
CATEGORIES= graphics
|
|
|
|
MASTER_SITES= SF
|
|
|
|
|
2013-03-18 18:10:57 +01:00
|
|
|
MAINTAINER= nemysis@gmx.ch
|
2011-08-31 11:14:15 +02:00
|
|
|
COMMENT= Remote control utility for Canon DSLR cameras
|
|
|
|
|
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2013-03-18 18:10:57 +01:00
|
|
|
CFLAGS+= -fPIC # required at least on amd64
|
2011-08-31 11:14:15 +02:00
|
|
|
USE_LDCONFIG= yes
|
|
|
|
|
|
|
|
PLIST_FILES= bin/multican lib/libmultican.so.0 lib/libmultican.so \
|
|
|
|
include/canonio.h include/usbio.h
|
2013-03-18 18:10:57 +01:00
|
|
|
|
2011-08-31 11:14:15 +02:00
|
|
|
PORTDOCS= ChangeLog README TODO
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${OSVERSION} < 800069
|
|
|
|
LIB_DEPENDS= usb:${PORTSDIR}/devel/libusb
|
2011-09-05 04:57:05 +02:00
|
|
|
CFLAGS+= -I${LOCALBASE}/include # does not uphold CPPFLAGS
|
2011-09-24 00:26:39 +02:00
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2011-08-31 11:14:15 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
2013-03-18 18:10:57 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|endian.h|sys/&|' ${WRKSRC}/canonio.c \
|
2011-08-31 11:14:15 +02:00
|
|
|
${WRKSRC}/usbio.c ${WRKSRC}/multican.c
|
|
|
|
|
|
|
|
post-install:
|
2013-03-18 18:10:57 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/
|
|
|
|
${INSTALL_LIB} ${WRKSRC}/libmultican.so.0 ${PREFIX}/lib/
|
2011-08-31 11:14:15 +02:00
|
|
|
${LN} -sf libmultican.so.0 ${PREFIX}/lib/libmultican.so
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/*.h ${PREFIX}/include
|
2013-03-18 18:10:57 +01:00
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2011-08-31 11:14:15 +02:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
2013-03-18 18:10:57 +01:00
|
|
|
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
|
2011-08-31 11:14:15 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|