mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
Link against libXt to avoid unresolvable symbols at runtime.
This commit is contained in:
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
|
@ -7,6 +7,7 @@
|
||||||
|
|
||||||
PORTNAME= mplayerplug-in
|
PORTNAME= mplayerplug-in
|
||||||
PORTVERSION= 0.40
|
PORTVERSION= 0.40
|
||||||
|
PORTREVISION= 1
|
||||||
CATEGORIES= www multimedia
|
CATEGORIES= www multimedia
|
||||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||||
MASTER_SITE_SUBDIR= mplayerplug-in
|
MASTER_SITE_SUBDIR= mplayerplug-in
|
||||||
|
@ -19,8 +20,15 @@ RUN_DEPENDS= mplayer:${PORTSDIR}/multimedia/mplayer
|
||||||
|
|
||||||
WRKSRC= ${WRKDIR}/${PORTNAME}
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
||||||
USE_X_PREFIX= yes
|
USE_X_PREFIX= yes
|
||||||
|
USE_REINPLACE= yes
|
||||||
USE_GMAKE= 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:
|
do-install:
|
||||||
${MKDIR} ${PREFIX}/lib/browser_plugins
|
${MKDIR} ${PREFIX}/lib/browser_plugins
|
||||||
${INSTALL_PROGRAM} ${WRKSRC}/mplayerplug-in.so \
|
${INSTALL_PROGRAM} ${WRKSRC}/mplayerplug-in.so \
|
||||||
|
|
|
@ -1,7 +1,11 @@
|
||||||
--- Makefile.orig Thu Feb 20 16:38:02 2003
|
--- Makefile.orig Sun Jan 19 08:47:31 2003
|
||||||
+++ Makefile Thu Feb 20 16:38:09 2003
|
+++ Makefile Fri Feb 21 00:16:20 2003
|
||||||
@@ -30,8 +30,8 @@
|
@@ -27,11 +27,11 @@
|
||||||
PLUGIN_DEFINES= -DXP_UNIX -Iinclude -ISource/_gen -I/usr/X11R6/include
|
#
|
||||||
|
|
||||||
|
# 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
|
CC= gcc
|
||||||
-OPTIMIZER= -g
|
-OPTIMIZER= -g
|
||||||
|
@ -11,3 +15,12 @@
|
||||||
|
|
||||||
SRC= Source/mplayerplug-in.c Source/stubs.c
|
SRC= Source/mplayerplug-in.c Source/stubs.c
|
||||||
OBJ= mplayerplug-in.o stubs.o
|
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
|
||||||
|
|
11
www/mplayer-plugin/files/patch-Source_mplayerplug-in.c
Normal file
11
www/mplayer-plugin/files/patch-Source_mplayerplug-in.c
Normal 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;
|
Loading…
Add table
Reference in a new issue