diff options
author | mnag <mnag@FreeBSD.org> | 2005-10-29 21:43:04 +0000 |
---|---|---|
committer | mnag <mnag@FreeBSD.org> | 2005-10-29 21:43:04 +0000 |
commit | 22b9918302e96ee45f567cee1fa8ec9b1e46345d (patch) | |
tree | a85e4e29374445f8436ec415815bb22248ca5b51 /multimedia/exportvideo | |
parent | 3b3aed814ebf4641a3cdc250fd2d12e196ee0998 (diff) | |
download | FreeBSD-ports-22b9918302e96ee45f567cee1fa8ec9b1e46345d.zip FreeBSD-ports-22b9918302e96ee45f567cee1fa8ec9b1e46345d.tar.gz |
Fix my last commit when use ${LOCALBASE}
Diffstat (limited to 'multimedia/exportvideo')
-rw-r--r-- | multimedia/exportvideo/Makefile | 5 | ||||
-rw-r--r-- | multimedia/exportvideo/files/patch-libmpeg3_configure | 13 | ||||
-rw-r--r-- | multimedia/exportvideo/files/patch-quicktime_configure | 13 |
3 files changed, 7 insertions, 24 deletions
diff --git a/multimedia/exportvideo/Makefile b/multimedia/exportvideo/Makefile index b59ae352..ea1ece4 100644 --- a/multimedia/exportvideo/Makefile +++ b/multimedia/exportvideo/Makefile @@ -21,6 +21,7 @@ LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png USE_GNOME= gtk12 USE_XLIB= yes USE_GMAKE= yes +USE_REINPLACE= yes HAS_CONFIGURE= yes CONFIGURE_ARGS= --no-avi --prefix=${PREFIX} @@ -57,6 +58,10 @@ pre-everything:: @${ECHO_MSG} "You can enable extra optimizations by defining WITH_OPTIMIZED_CFLAGS." .endif +post-patch: + @${REINPLACE_CMD} -e "s|%%LOCALBASE%%|${LOCALBASE}|g" \ + ${WRKSRC}/libmpeg3/configure ${WRKSRC}/quicktime/configure + do-install: ${INSTALL_PROGRAM} ${WRKSRC}/video/exportvideo ${PREFIX}/bin ${INSTALL_SCRIPT} ${FILESDIR}/nuv4dvd ${PREFIX}/bin diff --git a/multimedia/exportvideo/files/patch-libmpeg3_configure b/multimedia/exportvideo/files/patch-libmpeg3_configure index ce50348..90b25c0 100644 --- a/multimedia/exportvideo/files/patch-libmpeg3_configure +++ b/multimedia/exportvideo/files/patch-libmpeg3_configure @@ -1,16 +1,5 @@ --- libmpeg3/configure.orig Mon Feb 12 22:35:41 2001 +++ libmpeg3/configure Wed Oct 26 21:42:33 2005 -@@ -6,6 +6,10 @@ - for ac_option - do - case "$ac_option" in -+ --prefix=*) -+ PREFIX=`echo $ac_option|sed -e 's/.*=//'` -+ ;; -+ - --alpha) - USE_MMX=0 - USE_CSS=0 @@ -43,8 +47,8 @@ EOF @@ -18,7 +7,7 @@ -if test -z "$CFLAGS"; then - echo >> global_config "CFLAGS = -O2 -D_FILE_OFFSET_BITS=64 -funroll-loops -fomit-frame-pointer -malign-loops=2 -malign-jumps=2 -malign-functions=2 -march=i486 -I/usr/local/include" +if true; then -+ echo >> global_config "CFLAGS += -D_FILE_OFFSET_BITS=64 -I${LOCALBASE}/include" ++ echo >> global_config "CFLAGS += -D_FILE_OFFSET_BITS=64 -I%%LOCALBASE%%/include" fi cat >> global_config << EOF diff --git a/multimedia/exportvideo/files/patch-quicktime_configure b/multimedia/exportvideo/files/patch-quicktime_configure index f22de6d..bc0cc04 100644 --- a/multimedia/exportvideo/files/patch-quicktime_configure +++ b/multimedia/exportvideo/files/patch-quicktime_configure @@ -1,16 +1,5 @@ --- quicktime/configure.orig Mon Feb 12 22:35:41 2001 +++ quicktime/configure Wed Oct 26 21:40:17 2005 -@@ -6,6 +6,10 @@ - for ac_option - do - case "$ac_option" in -+ --prefix=*) -+ PREFIX=`echo $ac_option|sed -e 's/.*=//'` -+ ;; -+ - --alpha) - USE_MMX=0 - ;; @@ -39,8 +43,8 @@ # DO NOT EDIT. EDIT ./configure INSTEAD AND RERUN IT. EOF @@ -18,7 +7,7 @@ -if test -z "$CFLAGS"; then - echo >> global_config "CFLAGS = -O2 -fomit-frame-pointer -malign-loops=2 -malign-jumps=2 -malign-functions=2 -march=i486 -I/usr/local/include" +if true; then -+ echo >> global_config "CFLAGS += -I${LOCALBASE}/include" ++ echo >> global_config "CFLAGS += -I%%LOCALBASE%%/include" fi if [ ${USE_FIREWIRE} = 1 ]; then |