2011-08-31 11:14:15 +02:00
|
|
|
# New ports collection makefile for: Multican
|
|
|
|
# Date created: 30 Aug 2011
|
|
|
|
# Whom: Alexey Dokuchaev <danfe@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= multican
|
|
|
|
DISTVERSION= 0.0.5
|
|
|
|
CATEGORIES= graphics
|
|
|
|
MASTER_SITES= SF
|
|
|
|
|
|
|
|
MAINTAINER= danfe@FreeBSD.org
|
|
|
|
COMMENT= Remote control utility for Canon DSLR cameras
|
|
|
|
|
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2011-09-05 04:57:05 +02:00
|
|
|
CFLAGS+= -fPIC
|
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
|
|
|
|
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:
|
|
|
|
@${REINPLACE_CMD} -e 's,endian\.h,sys/&,' ${WRKSRC}/canonio.c \
|
|
|
|
${WRKSRC}/usbio.c ${WRKSRC}/multican.c
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/libmultican.so.0 ${PREFIX}/lib
|
|
|
|
${LN} -sf libmultican.so.0 ${PREFIX}/lib/libmultican.so
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/*.h ${PREFIX}/include
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|