Link against libXt to avoid unresolvable symbols at runtime.

This commit is contained in:
Joe Marcus Clarke 2003-02-21 20:53:44 +00:00
parent 6d30d8a811
commit 04181f8c20
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=76066
3 changed files with 36 additions and 4 deletions

View file

@ -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 \

View file

@ -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

View file

@ -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;