mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-15 07:56:36 +00:00
05f0f44a55
Homepage link is permanent redirected to its HTTPS counterpart
41 lines
1.1 KiB
Makefile
41 lines
1.1 KiB
Makefile
PORTNAME= multican
|
|
DISTVERSION= 0.0.5
|
|
PORTREVISION= 3
|
|
CATEGORIES= graphics
|
|
MASTER_SITES= SF
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Remote control utility for Canon DSLR cameras
|
|
WWW= https://multican.sourceforge.net/
|
|
|
|
LICENSE= GPLv2+
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
CFLAGS+= -fPIC # required at least on amd64
|
|
USE_LDCONFIG= yes
|
|
|
|
PLIST_FILES= bin/multican lib/libmultican.so.0 lib/libmultican.so \
|
|
include/canonio.h include/usbio.h
|
|
|
|
PORTDOCS= ChangeLog README
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|endian.h|sys/&|' ${WRKSRC}/canonio.c \
|
|
${WRKSRC}/usbio.c ${WRKSRC}/multican.c
|
|
@${REINPLACE_CMD} -e 's|`getconf LFS_CFLAGS`|-w|' \
|
|
${WRKSRC}/Makefile
|
|
|
|
post-install:
|
|
${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/
|
|
|
|
post-install-DOCS-on:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.mk>
|