1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

- Stagify

- Add LICENSE
- Remove NO_PACKAGE restriction, the package should include a working kmod
- Use new LIB_DEPENDS
- Move pkg-message to files/
- Use %%KMODDIR%% instead of hardcoding it
This commit is contained in:
Lars Engels 2014-06-20 09:11:39 +00:00
parent 6cb9c9671c
commit 10b91beee0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=358535
3 changed files with 16 additions and 14 deletions

View File

@ -3,7 +3,7 @@
PORTNAME= pwcbsd
PORTVERSION= 1.4.1
PORTREVISION= 9
PORTREVISION= 10
CATEGORIES= multimedia sysutils kld
MASTER_SITES= http://raaf.atspace.org/ \
http://www.bsd-geek.de/FreeBSD/distfiles/ \
@ -13,21 +13,21 @@ MASTER_SITE_SUBDIR= miwi
MAINTAINER= lme@FreeBSD.org
COMMENT= The Linux pwc webcam driver ported to FreeBSD
LICENSE= GPLv2
CONFLICTS= pwcview-[0-9]*
SSP_UNSAFE= kernel module does not support ssp
MAN4= pwc.4
WRKSRC= ${WRKDIR}/${PORTNAME}
NO_PACKAGE= should be recompiled for a particular FreeBSD kernel
PLIST_SUB= KMODDIR=${KMODDIR}
OPTIONS_DEFINE= PROGRAMS MMAP
OPTIONS_DEFAULT= PROGRAMS
PROGRAMS_DESC= Build the programs
MMAP_DESC= Enable mmap support (MAY CRASH YOUR SYSTEM)
NO_STAGE= yes
.include <bsd.port.options.mk>
EXTRA_PATCHES= ${FILESDIR}/extra-patch-Makefile.kld \
@ -48,8 +48,7 @@ ALL_TARGET= all
.if ${PORT_OPTIONS:MPROGRAMS}
ALL_TARGET+= pwcview
PROGRAMS= pwcview
LIB_DEPENDS= jpeg:${PORTSDIR}/graphics/jpeg
MAN1= pwcview.1
LIB_DEPENDS= libjpeg.so:${PORTSDIR}/graphics/jpeg
USE_SDL= sdl
PLIST_SUB+= PROGRAMS=""
.else
@ -61,12 +60,13 @@ post-patch:
@${REINPLACE_CMD} -e 's|sdl-config|${SDL_CONFIG}|g' ${WRKSRC}/Makefile
.endif
post-install:
${INSTALL_MAN} ${MAN4:S|^|${WRKSRC}/|} ${PREFIX}/man/man4
do-install:
${MKDIR} ${STAGEDIR}${KMODDIR}
${INSTALL_KLD} ${WRKSRC}/pwc.ko ${STAGEDIR}${KMODDIR}
${INSTALL_MAN} ${WRKSRC}/pwc.4 ${STAGEDIR}${PREFIX}/man/man4
.if ${PORT_OPTIONS:MPROGRAMS}
${INSTALL_PROGRAM} ${PROGRAMS:S|^|${WRKSRC}/|} ${PREFIX}/bin
${INSTALL_MAN} ${MAN1:S|^|${WRKSRC}/|} ${PREFIX}/man/man1
${INSTALL_PROGRAM} ${PROGRAMS:S|^|${WRKSRC}/|} ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${PROGRAMS:S|^|${WRKSRC}/|}.1 ${STAGEDIR}${PREFIX}/man/man1
.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>

View File

@ -1,5 +1,7 @@
%%PROGRAMS%%bin/pwcview
@cwd /boot/modules
pwc.ko
%%PROGRAMS%%man/man1/pwcview.1.gz
man/man4/pwc.4.gz
@cwd /
%%KMODDIR%%/pwc.ko
@exec kldxref %D
@unexec kldxref %D