2013-03-18 17:10:57 +00:00
|
|
|
# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
|
2011-08-31 09:14:15 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= multican
|
|
|
|
DISTVERSION= 0.0.5
|
2014-04-28 21:31:31 +00:00
|
|
|
PORTREVISION= 2
|
2011-08-31 09:14:15 +00:00
|
|
|
CATEGORIES= graphics
|
|
|
|
MASTER_SITES= SF
|
|
|
|
|
2014-04-28 21:31:31 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2011-08-31 09:14:15 +00:00
|
|
|
COMMENT= Remote control utility for Canon DSLR cameras
|
|
|
|
|
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2013-03-18 17:10:57 +00:00
|
|
|
CFLAGS+= -fPIC # required at least on amd64
|
2011-08-31 09:14:15 +00:00
|
|
|
USE_LDCONFIG= yes
|
|
|
|
|
|
|
|
PLIST_FILES= bin/multican lib/libmultican.so.0 lib/libmultican.so \
|
|
|
|
include/canonio.h include/usbio.h
|
2013-03-18 17:10:57 +00:00
|
|
|
|
2014-04-28 21:31:31 +00:00
|
|
|
PORTDOCS= ChangeLog README
|
2014-01-04 09:07:29 +00:00
|
|
|
OPTIONS_DEFINE= DOCS
|
2011-08-31 09:14:15 +00:00
|
|
|
|
|
|
|
post-patch:
|
2013-03-18 17:10:57 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|endian.h|sys/&|' ${WRKSRC}/canonio.c \
|
2011-08-31 09:14:15 +00:00
|
|
|
${WRKSRC}/usbio.c ${WRKSRC}/multican.c
|
2014-01-04 09:07:29 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|`getconf LFS_CFLAGS`|-w|' \
|
|
|
|
${WRKSRC}/Makefile
|
2011-08-31 09:14:15 +00:00
|
|
|
|
|
|
|
post-install:
|
2014-01-04 09:07:29 +00:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
|
|
|
|
${INSTALL_LIB} ${WRKSRC}/libmultican.so.0 ${STAGEDIR}${PREFIX}/lib/
|
|
|
|
${LN} -sf libmultican.so.0 ${STAGEDIR}${PREFIX}/lib/libmultican.so
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/*.h ${STAGEDIR}${PREFIX}/include/
|
|
|
|
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
|
2011-08-31 09:14:15 +00:00
|
|
|
|
2013-04-29 16:43:05 +00:00
|
|
|
.include <bsd.port.mk>
|