aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia
diff options
context:
space:
mode:
authorpawel <pawel@FreeBSD.org>2014-06-27 18:05:03 +0800
committerpawel <pawel@FreeBSD.org>2014-06-27 18:05:03 +0800
commit1fcbec95a5c0ddba857500f7495a81a1e73b1bac (patch)
treeed7f2b94c78f93a12eb2ae5006d59ea82cb38f92 /multimedia
parent29464d89be6a9fc3b821bde579ecd81b7de235b3 (diff)
downloadfreebsd-ports-gnome-1fcbec95a5c0ddba857500f7495a81a1e73b1bac.tar.gz
freebsd-ports-gnome-1fcbec95a5c0ddba857500f7495a81a1e73b1bac.tar.zst
freebsd-ports-gnome-1fcbec95a5c0ddba857500f7495a81a1e73b1bac.zip
- Add staging support
- Convert to new LIB_DEPENDS format - Fix DEBUG option, use option helper - More compact REINPLACE_CMD
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/openquicktime/Makefile28
1 files changed, 9 insertions, 19 deletions
diff --git a/multimedia/openquicktime/Makefile b/multimedia/openquicktime/Makefile
index a2962fb96713..20fa657c2a2c 100644
--- a/multimedia/openquicktime/Makefile
+++ b/multimedia/openquicktime/Makefile
@@ -12,7 +12,7 @@ EXTRACT_SUFX= .tgz
MAINTAINER= ports@FreeBSD.org
COMMENT= Portable library for handling Apple's QuickTime(TM) files
-LIB_DEPENDS= jpeg.11:${PORTSDIR}/graphics/jpeg
+LIB_DEPENDS= libjpeg.so:${PORTSDIR}/graphics/jpeg
GNU_CONFIGURE= yes
USE_GNOME= gtk12
@@ -20,31 +20,21 @@ USES= gmake
USE_LDCONFIG= yes
PKGDEINSTALL= ${PKGINSTALL}
-OPTIONS_DEFINE= DEBUG
-
-NO_STAGE= yes
-.include <bsd.port.options.mk>
+CFLAGS_amd64= -fPIC
-.if ${PORT_OPTIONS:MDEBUG}
-CONFIGURE_ARGS+= --enable-debug=no
-.endif
+OPTIONS_DEFINE= DEBUG
-.if ${ARCH} == "amd64"
-CFLAGS+= -fPIC
-.endif
+DEBUG_CONFIGURE_OFF= --enable-debug=no
post-patch:
- @${REINPLACE_CMD} -e 's|xCC|xc| ; s|-O2||' \
+ @${REINPLACE_CMD} -e 's|xCC|xc| ; s|-O2|| ; s|-fpic||' \
-e 's|ftello64|ftello| ; s|fseeko64|fseeko|' \
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
+ @${REINPLACE_CMD} -E 's,(bin|lib|include)dir),DESTDIR)$$(&,' \
+ ${WRKSRC}/Makefile.in \
+ ${WRKSRC}/audioplugin/MP3/Makefile.in \
+ ${WRKSRC}/videoplugin/PHOTO_JPEG/Makefile.in
@${REINPLACE_CMD} -e 's|"m"|"g"|' \
${WRKSRC}/audioplugin/MP3/audioencoder/lame3.70/quantize-pvt.c
- @${REINPLACE_CMD} \
- -e 's|-fpic||' \
- ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
-
-post-install:
- @${SETENV} PKG_PREFIX=${PREFIX} ${SH} \
- ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.include <bsd.port.mk>