diff options
author | marcus <marcus@FreeBSD.org> | 2003-02-22 04:53:44 +0800 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2003-02-22 04:53:44 +0800 |
commit | 8517f6068b97e1cc76aa3fb23c5b1a4833cbc67b (patch) | |
tree | 37e29fa30a6e11e85ac593f28ba88c2ef28d8460 /www/mplayer-plugin | |
parent | d380cbf0e73c2424eede13b0afa31e17d0bd2d43 (diff) | |
download | freebsd-ports-gnome-8517f6068b97e1cc76aa3fb23c5b1a4833cbc67b.tar.gz freebsd-ports-gnome-8517f6068b97e1cc76aa3fb23c5b1a4833cbc67b.tar.zst freebsd-ports-gnome-8517f6068b97e1cc76aa3fb23c5b1a4833cbc67b.zip |
Link against libXt to avoid unresolvable symbols at runtime.
Diffstat (limited to 'www/mplayer-plugin')
-rw-r--r-- | www/mplayer-plugin/Makefile | 8 | ||||
-rw-r--r-- | www/mplayer-plugin/files/patch-Makefile | 21 | ||||
-rw-r--r-- | www/mplayer-plugin/files/patch-Source_mplayerplug-in.c | 11 |
3 files changed, 36 insertions, 4 deletions
diff --git a/www/mplayer-plugin/Makefile b/www/mplayer-plugin/Makefile index 1c3fe47e0925..2f4e8bd96d7e 100644 --- a/www/mplayer-plugin/Makefile +++ b/www/mplayer-plugin/Makefile @@ -7,6 +7,7 @@ PORTNAME= mplayerplug-in PORTVERSION= 0.40 +PORTREVISION= 1 CATEGORIES= www multimedia MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= mplayerplug-in @@ -19,8 +20,15 @@ RUN_DEPENDS= mplayer:${PORTSDIR}/multimedia/mplayer WRKSRC= ${WRKDIR}/${PORTNAME} USE_X_PREFIX= yes +USE_REINPLACE= yes USE_GMAKE= yes +post-patch: + @${REINPLACE_CMD} -e 's|%%X11BASE%%|${X11BASE}|g' \ + ${WRKSRC}/Makefile + @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' \ + ${WRKSRC}/Source/mplayerplug-in.c + do-install: ${MKDIR} ${PREFIX}/lib/browser_plugins ${INSTALL_PROGRAM} ${WRKSRC}/mplayerplug-in.so \ diff --git a/www/mplayer-plugin/files/patch-Makefile b/www/mplayer-plugin/files/patch-Makefile index f94cb0a8f0d3..fd87c9a9b5ab 100644 --- a/www/mplayer-plugin/files/patch-Makefile +++ b/www/mplayer-plugin/files/patch-Makefile @@ -1,7 +1,11 @@ ---- Makefile.orig Thu Feb 20 16:38:02 2003 -+++ Makefile Thu Feb 20 16:38:09 2003 -@@ -30,8 +30,8 @@ - PLUGIN_DEFINES= -DXP_UNIX -Iinclude -ISource/_gen -I/usr/X11R6/include +--- Makefile.orig Sun Jan 19 08:47:31 2003 ++++ Makefile Fri Feb 21 00:16:20 2003 +@@ -27,11 +27,11 @@ + # + + # PLUGIN_DEFINES= -DXP_UNIX -DPLUGIN_TRACE +-PLUGIN_DEFINES= -DXP_UNIX -Iinclude -ISource/_gen -I/usr/X11R6/include ++PLUGIN_DEFINES= -DXP_UNIX -Iinclude -ISource/_gen -I%%X11BASE%%/include CC= gcc -OPTIMIZER= -g @@ -11,3 +15,12 @@ SRC= Source/mplayerplug-in.c Source/stubs.c OBJ= mplayerplug-in.o stubs.o +@@ -41,7 +41,7 @@ + default all: $(SHAREDTARGET) + + $(SHAREDTARGET): $(OBJ) +- $(CC) -shared -o $(SHAREDTARGET) $(OBJ) $(LDFLAGS) ++ $(CC) -shared -L%%X11BASE%%/lib -lXt -o $(SHAREDTARGET) $(OBJ) $(LDFLAGS) + + mplayerplug-in.o: Source/mplayerplug-in.c + $(CC) -c $(CFLAGS) Source/mplayerplug-in.c diff --git a/www/mplayer-plugin/files/patch-Source_mplayerplug-in.c b/www/mplayer-plugin/files/patch-Source_mplayerplug-in.c new file mode 100644 index 000000000000..7bbe8c4e5dc8 --- /dev/null +++ b/www/mplayer-plugin/files/patch-Source_mplayerplug-in.c @@ -0,0 +1,11 @@ +--- Source/mplayerplug-in.c.orig Fri Feb 21 15:43:56 2003 ++++ Source/mplayerplug-in.c Fri Feb 21 15:44:24 2003 +@@ -219,7 +219,7 @@ + } + + if (config == NULL) { +- config = fopen("/etc/mplayerplug-in.conf","r"); ++ config = fopen("%%PREFIX%%/etc/mplayerplug-in.conf","r"); + } + + DEBUG = 0; |