diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2004-11-18 09:55:55 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2004-11-18 09:55:55 +0000 |
commit | 97a4c60bafd7264574c920d8ffbb4fe24242773f (patch) | |
tree | ef660e5046d828f5ada2b22deb8b4e8fed875d71 | |
parent | 0755df96819f898e5d138feb743350ce9cf955bf (diff) | |
download | ports-97a4c60bafd7264574c920d8ffbb4fe24242773f.tar.gz ports-97a4c60bafd7264574c920d8ffbb4fe24242773f.zip |
- Switch to ./configure make make install way
Submitted by: Li-Lun Wang (Leland Wang) <llwang@infor.org>
Notes
Notes:
svn path=/head/; revision=121860
-rw-r--r-- | graphics/flashplayer/Makefile | 9 | ||||
-rw-r--r-- | graphics/flashplayer/files/Makefile | 10 | ||||
-rw-r--r-- | graphics/libflash/Makefile | 11 | ||||
-rw-r--r-- | graphics/libflash/files/Makefile | 22 | ||||
-rw-r--r-- | graphics/libflash/files/patch-ah | 4 | ||||
-rw-r--r-- | graphics/libflash/files/patch-ai | 4 | ||||
-rw-r--r-- | graphics/libflash/files/patch-configure | 11 | ||||
-rw-r--r-- | graphics/libflash/files/patch-lib::Makefile.in | 12 | ||||
-rw-r--r-- | www/flashplugin-mozilla/Makefile | 21 | ||||
-rw-r--r-- | www/flashplugin-mozilla/pkg-plist | 2 |
10 files changed, 51 insertions, 55 deletions
diff --git a/graphics/flashplayer/Makefile b/graphics/flashplayer/Makefile index 9ad6bbc96d6b..3ea271ec2ff3 100644 --- a/graphics/flashplayer/Makefile +++ b/graphics/flashplayer/Makefile @@ -12,17 +12,18 @@ MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= gplflash DISTNAME= gplflash-${PORTVERSION} -MAINTAINER= ports@FreeBSD.org +MAINTAINER= llwang@infor.org COMMENT= GPL standalone Flash (TM) player LIB_DEPENDS= flash.0:${PORTSDIR}/graphics/libflash WRKSRC= ${WRKDIR}/${DISTNAME}/player - USE_BZIP2= yes USE_X_PREFIX= yes -MAKEFILE= ${FILESDIR}/Makefile - +GNU_CONFIGURE= yes +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib" +CONFIGURE_WRKSRC= ${WRKDIR}/${DISTNAME} PLIST_FILES= bin/swfplayer .include <bsd.port.mk> diff --git a/graphics/flashplayer/files/Makefile b/graphics/flashplayer/files/Makefile deleted file mode 100644 index de1dd0330786..000000000000 --- a/graphics/flashplayer/files/Makefile +++ /dev/null @@ -1,10 +0,0 @@ -# $FreeBSD$ - -PROG_CXX= swfplayer -SRCS= main.c -CFLAGS= ${CXXFLAGS} -I${LOCALBASE}/include -I${X11BASE}/include -LDADD= -L${LOCALBASE}/lib -lflash -L${X11BASE}/lib -lX11 -lXext -lm -NOMAN= YES -BINDIR= ${X11BASE}/bin - -.include <bsd.prog.mk> diff --git a/graphics/libflash/Makefile b/graphics/libflash/Makefile index 26202a8e99c1..7db2e461a705 100644 --- a/graphics/libflash/Makefile +++ b/graphics/libflash/Makefile @@ -12,17 +12,20 @@ MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= gplflash DISTNAME= gplflash-${PORTVERSION} -MAINTAINER= ports@FreeBSD.org +MAINTAINER= llwang@infor.org COMMENT= GPL Flash (TM) Library LIB_DEPENDS= mad.2:${PORTSDIR}/audio/libmad \ jpeg.9:${PORTSDIR}/graphics/jpeg WRKSRC= ${WRKDIR}/${DISTNAME}/lib - +USE_LIBTOOL_VER= 15 +PATCH_WRKSRC= ${WRKDIR}/${DISTNAME} +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib" +CONFIGURE_WRKSRC= ${WRKDIR}/${DISTNAME} USE_BZIP2= yes +USE_XLIB= yes INSTALLS_SHLIB= yes -MAKEFILE= ${FILESDIR}/Makefile -MAKE_ARGS= NOPROFILE=true .include <bsd.port.mk> diff --git a/graphics/libflash/files/Makefile b/graphics/libflash/files/Makefile deleted file mode 100644 index 93851f4dc06a..000000000000 --- a/graphics/libflash/files/Makefile +++ /dev/null @@ -1,22 +0,0 @@ -# $FreeBSD$ - -LIB= flash -SHLIB_MAJOR?= 0 -SHLIB_MINOR?= 4 -CXXFLAGS+= -fno-rtti -DXP_UNIX \ - -I${LOCALBASE}/include \ - -DCHECK_TEXT_PLAIN -LDADD= -lz \ - -L${LOCALBASE}/lib -ljpeg -lmad -SRCS= adpcm.cc bitmap.cc button.cc character.cc cxform.cc \ - displaylist.cc flash.cc font.cc graphic.cc graphic16.cc \ - graphic24.cc graphic32.cc matrix.cc movie.cc \ - program.cc script.cc shape.cc sound.cc \ - sprite.cc sqrt.cc text.cc -INCS= flash.h -NOMAN= YES -LIBDIR= ${LOCALBASE}/lib -INCSDIR= ${LOCALBASE}/include -INCDIR= ${INCSDIR} # for pre-bsd.incs.mk API - -.include <bsd.lib.mk> diff --git a/graphics/libflash/files/patch-ah b/graphics/libflash/files/patch-ah index 80628391a448..d261e922672f 100644 --- a/graphics/libflash/files/patch-ah +++ b/graphics/libflash/files/patch-ah @@ -1,5 +1,5 @@ ---- cxform.cc.orig Tue May 2 04:18:33 2000 -+++ cxform.cc Thu Oct 12 14:44:03 2000 +--- lib/cxform.cc.orig Tue May 2 04:18:33 2000 ++++ lib/cxform.cc Thu Oct 12 14:44:03 2000 @@ -26,6 +26,10 @@ static char *rcsid = "$Id"; #endif diff --git a/graphics/libflash/files/patch-ai b/graphics/libflash/files/patch-ai index 8036f800a439..afbe537fd99b 100644 --- a/graphics/libflash/files/patch-ai +++ b/graphics/libflash/files/patch-ai @@ -1,5 +1,5 @@ ---- sound.cc.orig Sat Oct 16 03:16:19 2004 -+++ sound.cc Sat Oct 23 17:44:05 2004 +--- lib/sound.cc.orig Sat Oct 16 03:16:19 2004 ++++ lib/sound.cc Sat Oct 23 17:44:05 2004 @@ -20,7 +20,7 @@ // Author : Olivier Debon <odebon@club-internet.fr> // diff --git a/graphics/libflash/files/patch-configure b/graphics/libflash/files/patch-configure new file mode 100644 index 000000000000..cfe5a0d9a69f --- /dev/null +++ b/graphics/libflash/files/patch-configure @@ -0,0 +1,11 @@ +--- configure.orig Fri Oct 15 13:35:02 2004 ++++ configure Wed Nov 17 16:04:44 2004 +@@ -1529,7 +1529,7 @@ + + # libtool versioning + LT_RELEASE=$FLASH_MAJOR_VERSION.$FLASH_MINOR_VERSION +-LT_CURRENT=`expr $FLASH_MICRO_VERSION - $FLASH_INTERFACE_AGE` ++LT_CURRENT=$FLASH_MAJOR_VERSION + LT_REVISION=$FLASH_INTERFACE_AGE + LT_AGE=`expr $FLASH_BINARY_AGE - $FLASH_INTERFACE_AGE` + diff --git a/graphics/libflash/files/patch-lib::Makefile.in b/graphics/libflash/files/patch-lib::Makefile.in new file mode 100644 index 000000000000..1f77e520cd00 --- /dev/null +++ b/graphics/libflash/files/patch-lib::Makefile.in @@ -0,0 +1,12 @@ +--- lib/Makefile.in.orig Fri Oct 15 13:34:57 2004 ++++ lib/Makefile.in Wed Nov 17 16:03:58 2004 +@@ -256,8 +256,7 @@ + + libflash_includedir = $(includedir) + libflash_la_LDFLAGS = \ +- -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \ +- -release $(LT_RELEASE) \ ++ -version-info $(LT_CURRENT) \ + -export-dynamic \ + $(LIBJPEG) $(LIBZ) $(LIBMAD) + diff --git a/www/flashplugin-mozilla/Makefile b/www/flashplugin-mozilla/Makefile index 560ee3b8703a..6559ac42ddb4 100644 --- a/www/flashplugin-mozilla/Makefile +++ b/www/flashplugin-mozilla/Makefile @@ -21,18 +21,19 @@ RUN_DEPENDS?= mozilla:${PORTSDIR}/www/mozilla WRKSRC= ${WRKDIR}/${DISTNAME}/plugin USE_BZIP2= yes +USE_REINPLACE= yes USE_X_PREFIX= yes PLUGIN_DIR?= lib/browser_plugins PLIST_SUB+= PLUGIN_DIR=${PLUGIN_DIR} - -do-build: - cd ${WRKSRC} && ${CC} ${CFLAGS} -shared -fPIC -DXP_UNIX \ - -I${.CURDIR}../lib -I${LOCALBASE}/include -I${X11BASE}/include \ - -o npflash.so plugin.c npunix.c \ - -L${LOCALBASE}/lib -L${X11BASE}/lib -lflash -lXt - -do-install: - @${MKDIR} ${PREFIX}/${PLUGIN_DIR} - @${INSTALL_PROGRAM} ${WRKSRC}/npflash.so ${PREFIX}/${PLUGIN_DIR} +GNU_CONFIGURE= yes +CONFIGURE_ARGS+= --with-plugin-dir="${PREFIX}/${PLUGIN_DIR}" +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib" +CONFIGURE_WRKSRC= ${WRKDIR}/${DISTNAME} + +post-patch: + @${REINPLACE_CMD} -e "s,-L../lib/.libs,-L${LOCALBASE}/lib," \ + -e "s/libnpflash.so.0.0.0/libnpflash.so.0/" \ + ${WRKSRC}/Makefile.in .include <bsd.port.mk> diff --git a/www/flashplugin-mozilla/pkg-plist b/www/flashplugin-mozilla/pkg-plist index 5c3eb594adb3..c8ebfc6508dd 100644 --- a/www/flashplugin-mozilla/pkg-plist +++ b/www/flashplugin-mozilla/pkg-plist @@ -1,2 +1,2 @@ -%%PLUGIN_DIR%%/npflash.so +%%PLUGIN_DIR%%/libnpflash.so @unexec rmdir %D/%%PLUGIN_DIR%% 2>/dev/null || true |