2013-05-06 10:31:29 +02:00
|
|
|
# Created by: Andrew Pantyukhin <infofarmer@FreeBSD.org>
|
2006-12-25 19:25:12 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= frei0r
|
2011-03-11 13:42:45 +01:00
|
|
|
PORTVERSION= 1.3
|
2006-12-25 19:25:12 +01:00
|
|
|
DISTVERSIONPREFIX= plugins-
|
2011-06-29 13:53:04 +02:00
|
|
|
PORTREVISION?= 1
|
2006-12-25 19:25:12 +01:00
|
|
|
CATEGORIES= graphics
|
2011-06-29 17:09:53 +02:00
|
|
|
MASTER_SITES?= http://piksel.no/${PORTNAME}/releases/ \
|
2010-09-25 20:18:26 +02:00
|
|
|
ftp://ftp.dyne.org/${PORTNAME}/releases/ \
|
2009-05-07 01:10:50 +02:00
|
|
|
http://distfiles.macports.org/${PORTNAME}-plugins/
|
2006-12-25 19:25:12 +01:00
|
|
|
|
2012-09-13 06:45:58 +02:00
|
|
|
MAINTAINER= jhale@FreeBSD.org
|
2011-06-29 17:09:53 +02:00
|
|
|
COMMENT?= Minimalistic plugin API for video effects
|
2006-12-25 19:25:12 +01:00
|
|
|
|
2011-06-29 17:09:53 +02:00
|
|
|
.if !defined(BUILDING_FREI0R_METAPORT)
|
2009-05-07 01:10:50 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2013-09-02 00:50:06 +02:00
|
|
|
USES= pathfix pkgconfig
|
2006-12-25 19:25:12 +01:00
|
|
|
|
2010-09-25 20:18:26 +02:00
|
|
|
LICENSE= GPLv2
|
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
|
2011-06-29 13:53:04 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
|
|
|
|
|
|
.if defined(BUILDING_FREI0R_OPENCV) && defined(BUILDING_FREI0R_GAVL)
|
2011-06-29 17:09:53 +02:00
|
|
|
IGNORE= cannot build OpenCV and gavl plugins simultaneously
|
2011-06-29 13:53:04 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(BUILDING_FREI0R_OPENCV)
|
2012-06-01 07:26:28 +02:00
|
|
|
PORTREVISION= 2
|
2011-06-29 13:53:04 +02:00
|
|
|
COMMENT= Frei0r OpenCV plugins
|
|
|
|
PKGNAMESUFFIX= -plugins-opencv
|
|
|
|
LIB_DEPENDS+= opencv_legacy.2:${PORTSDIR}/graphics/opencv
|
|
|
|
FREI0R_PLUGINS= facebl0r facedetect
|
|
|
|
.elif defined(BUILDING_FREI0R_GAVL)
|
2012-06-01 07:26:28 +02:00
|
|
|
PORTREVISION= 2
|
2011-06-29 13:53:04 +02:00
|
|
|
COMMENT= Frei0r gavl plugins
|
|
|
|
PKGNAMESUFFIX= -plugins-gavl
|
|
|
|
LIB_DEPENDS+= gavl.1:${PORTSDIR}/multimedia/gavl
|
|
|
|
FREI0R_PLUGINS= rgbparade scale0tilt vectorscope
|
|
|
|
.else
|
|
|
|
|
2011-03-11 13:42:45 +01:00
|
|
|
PORTDOCS= *
|
2010-09-25 20:18:26 +02:00
|
|
|
|
2013-05-06 10:31:29 +02:00
|
|
|
OPTIONS_DEFINE= APIDOC
|
|
|
|
OPTIONS_DEFINE_amd64= MMX
|
|
|
|
APIDOC_DESC= Install full documentation (requires doxygen)
|
|
|
|
MMX_DESC= MMX CPU instructions
|
2010-09-25 20:18:26 +02:00
|
|
|
|
2013-09-20 20:35:44 +02:00
|
|
|
NO_STAGE= yes
|
2011-03-11 13:42:45 +01:00
|
|
|
.include <bsd.port.options.mk>
|
2010-08-31 10:07:10 +02:00
|
|
|
|
2013-05-06 10:31:29 +02:00
|
|
|
. if ${PORT_OPTIONS:MDOCS} && ${PORT_OPTIONS:MAPIDOC}
|
2010-09-25 20:18:26 +02:00
|
|
|
BUILD_DEPENDS+= doxygen:${PORTSDIR}/devel/doxygen
|
2011-06-29 13:53:04 +02:00
|
|
|
. endif
|
|
|
|
|
|
|
|
.endif # !defined(BUILDING_FREI0R_OPENCV) && !defined(BUILDING_FREI0R_GAVL)
|
|
|
|
|
|
|
|
.if defined(FREI0R_PLUGINS)
|
|
|
|
CPPFLAGS+= "-I${LOCALBASE}/include"
|
|
|
|
PLIST= ${WRKSRC}/PLIST
|
|
|
|
ALL_TARGET=
|
|
|
|
BUILD_WRKSRC= ${WRKSRC}/src
|
|
|
|
. for FILE in ${FREI0R_PLUGINS}
|
|
|
|
ALL_TARGET+= ${FILE}.la
|
|
|
|
PLIST_FILES+= lib/frei0r-1/${FILE}.so
|
|
|
|
. endfor
|
|
|
|
PLIST_FILES+= "@dirrmtry lib/frei0r-1"
|
2010-09-25 20:18:26 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
2011-06-29 13:53:04 +02:00
|
|
|
.if !defined(BUILDING_FREI0R_GAVL)
|
|
|
|
@${REINPLACE_CMD} -e 's/HAVE_GAVL=true/HAVE_GAVL=false/g' \
|
|
|
|
${WRKSRC}/configure
|
2011-03-11 13:42:45 +01:00
|
|
|
.endif
|
2011-06-29 13:53:04 +02:00
|
|
|
.if !defined(BUILDING_FREI0R_OPENCV)
|
|
|
|
@${REINPLACE_CMD} -e 's/HAVE_OPENCV=true/HAVE_OPENCV=false/g' \
|
|
|
|
${WRKSRC}/configure
|
|
|
|
.endif
|
|
|
|
.if !defined(FREI0R_PLUGINS)
|
2013-05-06 10:31:29 +02:00
|
|
|
. if ${PORT_OPTIONS:MDOCS} && ${PORT_OPTIONS:MAPIDOC}
|
2011-06-29 13:53:04 +02:00
|
|
|
@${REINPLACE_CMD} -e '/^SUBDIRS/s|include|include doc|' ${WRKSRC}/Makefile.in
|
|
|
|
. endif
|
2013-05-06 10:31:29 +02:00
|
|
|
. if ! ${PORT_OPTIONS:MDOCS}
|
2011-03-11 13:42:45 +01:00
|
|
|
@${REINPLACE_CMD} -e '/^install-data-am/s| install-docsDATA||' \
|
|
|
|
${WRKSRC}/Makefile.in
|
2011-06-29 13:53:04 +02:00
|
|
|
. endif
|
2010-09-25 20:18:26 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|^docsdir.*|docsdir = ${DOCSDIR}|' \
|
2011-03-11 13:42:45 +01:00
|
|
|
${WRKSRC}/Makefile.in
|
2010-09-25 20:18:26 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|^htmldocsdir.*|htmldocsdir = ${DOCSDIR}|' \
|
2011-03-11 13:42:45 +01:00
|
|
|
${WRKSRC}/doc/Makefile.in
|
2011-06-29 13:53:04 +02:00
|
|
|
.else
|
|
|
|
do-install:
|
|
|
|
@${MKDIR} ${PREFIX}/lib/frei0r-1
|
|
|
|
. for FILE in ${FREI0R_PLUGINS}
|
|
|
|
@${INSTALL_LIB} ${BUILD_WRKSRC}/.libs/${FILE}.so \
|
|
|
|
${PREFIX}/lib/frei0r-1/${FILE}.so
|
|
|
|
. endfor
|
|
|
|
.endif #!defined(FREI0R_PLUGINS)
|
2010-09-25 20:18:26 +02:00
|
|
|
|
2011-10-29 11:37:46 +02:00
|
|
|
pre-build:
|
|
|
|
@${TOUCH} ${WRKSRC}/aclocal.m4 ${WRKSRC}/Makefile.in \
|
|
|
|
${WRKSRC}/configure ${WRKSRC}/config.h.in
|
|
|
|
|
2013-05-06 10:31:29 +02:00
|
|
|
.include <bsd.port.mk>
|
2011-06-29 17:09:53 +02:00
|
|
|
|
|
|
|
.endif # !defined(BUILDING_FREI0R_METAPORT)
|