aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
Diffstat (limited to 'graphics')
-rw-r--r--graphics/mpeg-lib/Makefile6
-rw-r--r--graphics/mpeg-lib/files/patch-aa22
-rw-r--r--graphics/mpeg-lib/pkg-plist4
3 files changed, 19 insertions, 13 deletions
diff --git a/graphics/mpeg-lib/Makefile b/graphics/mpeg-lib/Makefile
index 6d534236ce3c..0665a13ac45a 100644
--- a/graphics/mpeg-lib/Makefile
+++ b/graphics/mpeg-lib/Makefile
@@ -8,16 +8,14 @@
DISTNAME= mpeg_lib-1.3.1
CATEGORIES= graphics
-MASTER_SITES= ftp://ftp.bic.mni.mcgill.ca/pub/mpeg/
+MASTER_SITES= ftp://ftp.bic.mni.mcgill.ca/pub/mpeg/ \
+ http://starship.python.net/~gward/mpeglib/
MAINTAINER= ports@FreeBSD.org
GNU_CONFIGURE= yes
CONFIGURE_ENV= OPTIMIZE="${CFLAGS}"
-pre-install:
- @${MKDIR} ${PREFIX}/bin ${PREFIX}/lib ${PREFIX}/include
-
post-install:
${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/lib
diff --git a/graphics/mpeg-lib/files/patch-aa b/graphics/mpeg-lib/files/patch-aa
index 8c9208001a5c..018ef0098eb4 100644
--- a/graphics/mpeg-lib/files/patch-aa
+++ b/graphics/mpeg-lib/files/patch-aa
@@ -1,6 +1,14 @@
--- Makefile.in.orig Fri Nov 27 01:03:29 1998
-+++ Makefile.in Tue Aug 31 23:11:56 1999
-@@ -26,6 +26,7 @@
++++ Makefile.in Tue Nov 23 02:51:05 1999
+@@ -19,13 +19,14 @@
+ exec_prefix = @exec_prefix@
+ INSTALL_INCLUDE = @includedir@
+ INSTALL_LIBRARY = @libdir@
+-INSTALL = @INSTALL@
++INSTALL_DATA = @INSTALL_DATA@
+
+ # Other miscellaneous programs
+ AR = @AR@
ARFLAGS = -ru
RANLIB = @RANLIB@
@@ -20,7 +28,7 @@
LIBRARY = libmpeg.a
-SHLIB = libmpeg.so
+.if ${PORTOBJFORMAT} == elf
-+SHLIB = libmpeg.so.1
++SHLIB = libmpeg.so.1
+.else
+SHLIB = libmpeg.so.1.3
+.endif
@@ -57,9 +65,9 @@
+ ln -sf $(SHLIB) `echo $(SHLIB) | sed 's/\.so.*$$/\.so/'`
+
+install:
-+ install -c -m 444 ${LIBRARY} ${SHLIB} ${PREFIX}/lib
-+ (cd ${PREFIX}/lib; ln -sf $(SHLIB) `echo $(SHLIB) | sed 's/\.so.*$$/\.so/'`)
-+ install -c -m 444 mpeg.h ${PREFIX}/include
++ $(INSTALL_DATA) $(LIBRARY) $(SHLIB) $(INSTALL_LIBRARY)
++ (cd $(INSTALL_LIBRARY); ln -sf $(SHLIB) `echo $(SHLIB) | sed 's/\.so.*$$/\.so/'`)
++ $(INSTALL_DATA) $(HEADER) $(INSTALL_INCLUDE)
clean:
rm -f $(LIBRARY) $(EXTRAS) $(LIBOBJ) core
@@ -68,7 +76,7 @@
cd extras && $(MAKE) distclean
+.c.so:
-+ ${CC} ${CFLAGS} $(INCLUDE_DIRS) -fpic -DPIC -c $< -o $@
++ $(CC) $(CFLAGS) $(INCLUDE_DIRS) -fpic -DPIC -c $< -o $@
# Executable targets (mpegtest, easympeg [GL platforms only])
diff --git a/graphics/mpeg-lib/pkg-plist b/graphics/mpeg-lib/pkg-plist
index 3903b69745b2..ad1a50a18149 100644
--- a/graphics/mpeg-lib/pkg-plist
+++ b/graphics/mpeg-lib/pkg-plist
@@ -1,6 +1,6 @@
+include/mpeg.h
lib/libmpeg.a
-lib/libmpeg.so.1.3
lib/libmpeg.so
+lib/libmpeg.so.1
@exec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -m %B
@unexec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -R
-include/mpeg.h