1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00

* Removed unneeded lines from Makefile

* Fixed install options
* Fixed pkg/PLIST

PR:		15223
Submitted by:	KATO Tsuguru <tkato@prontomail.ne.jp>
This commit is contained in:
Steve Price 1999-12-23 16:14:45 +00:00
parent 9c501116b4
commit d112d0f6cc
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=23886
3 changed files with 19 additions and 13 deletions

View File

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

View File

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

View File

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