Add USE_GMAKE

Remove redundant GNU_CONFIGURE
Install info file
Support install macros
perl -> PERL
Fix version number of sharedlib

PR:		22054
Submitted by:	Ports Fury
This commit is contained in:
Ade Lovett 2000-10-17 20:07:25 +00:00
parent a64b373f81
commit d86841e4e5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=33941
4 changed files with 79 additions and 11 deletions

View file

@ -13,14 +13,16 @@ MASTER_SITES= ftp://ftp.openal.org/
MAINTAINER= ports@FreeBSD.org
WRKSRC= ${WRKDIR}/${PORTNAME}/linux
USE_GMAKE= yes
USE_AUTOCONF= yes
GNU_CONFIGURE= yes
INSTALLS_SHLIB= yes
post-patch:
for file in $$(find ${WRKSRC} -name Makefile.in); \
do \
perl -pi -e 's/-g -c/-c/g' $${file}; \
done
@find ${WRKSRC} -name 'Makefile.in' | xargs ${PERL} -pi -e 's/-g -c/-c/g'
post-install:
${INSTALL_DATA} ${WRKSRC}/doc/openal.info ${PREFIX}/info
@install-info ${PREFIX}/info/openal.info ${PREFIX}/info/dir
.include <bsd.port.mk>

View file

@ -0,0 +1,42 @@
--- Makefile.in.orig Sun Sep 3 17:40:32 2000
+++ Makefile.in Fri Oct 13 05:50:01 2000
@@ -1,4 +1,5 @@
INSTALL=@INSTALL@
+INSTALL_DATA=@INSTALL_DATA@
LN_S=@LN_S@
DESTDIR=@prefix@/
DESTINC=$(DESTDIR)include
@@ -38,20 +39,19 @@
$(INSTALL) -d -m 755 $(DESTINC)
$(INSTALL) -d -m 755 $(DESTINC)/AL
$(INSTALL) -d -m 755 $(DESTLIB)
- $(INSTALL) -m 755 src/libopenal.a $(DESTLIB)
- $(INSTALL) -m 755 src/libopenal.so.$(VERSION) $(DESTLIB)
- $(LN_S) -f $(DESTLIB)/libopenal.so.$(VERSION) $(DESTLIB)/libopenal.so.$(MAJOR_VERSION)
- $(LN_S) -f $(DESTLIB)/libopenal.so.$(VERSION) $(DESTLIB)/libopenal.so
- $(INSTALL) -m 444 ../include/AL/al.h $(DESTINC)/AL
- $(INSTALL) -m 444 ../include/AL/alc.h $(DESTINC)/AL
- $(INSTALL) -m 444 ../include/AL/alu.h $(DESTINC)/AL
- $(INSTALL) -m 444 ../include/AL/alut.h $(DESTINC)/AL
- $(INSTALL) -m 444 ../include/AL/altypes.h $(DESTINC)/AL
- $(INSTALL) -m 444 ../include/AL/alctypes.h $(DESTINC)/AL
- $(INSTALL) -m 444 ../include/AL/alutypes.h $(DESTINC)/AL
- $(INSTALL) -m 444 ../include/AL/aluttypes.h $(DESTINC)/AL
- $(INSTALL) -m 444 include/AL/alkludge.h $(DESTINC)/AL
- $(INSTALL) -m 444 include/AL/alkludgetypes.h $(DESTINC)/AL
+ $(INSTALL_DATA) src/libopenal.a $(DESTLIB)
+ $(INSTALL_DATA) src/libopenal.so.$(MAJOR_VERSION) $(DESTLIB)
+ $(LN_S) -f $(DESTLIB)/libopenal.so.$(MAJOR_VERSION) $(DESTLIB)/libopenal.so
+ $(INSTALL_DATA) ../include/AL/al.h $(DESTINC)/AL
+ $(INSTALL_DATA) ../include/AL/alc.h $(DESTINC)/AL
+ $(INSTALL_DATA) ../include/AL/alu.h $(DESTINC)/AL
+ $(INSTALL_DATA) ../include/AL/alut.h $(DESTINC)/AL
+ $(INSTALL_DATA) ../include/AL/altypes.h $(DESTINC)/AL
+ $(INSTALL_DATA) ../include/AL/alctypes.h $(DESTINC)/AL
+ $(INSTALL_DATA) ../include/AL/alutypes.h $(DESTINC)/AL
+ $(INSTALL_DATA) ../include/AL/aluttypes.h $(DESTINC)/AL
+ $(INSTALL_DATA) include/AL/alkludge.h $(DESTINC)/AL
+ $(INSTALL_DATA) include/AL/alkludgetypes.h $(DESTINC)/AL
configure: configure.in
@echo "configure.in newer than configure...Please re-./configure"

View file

@ -0,0 +1,21 @@
--- src/Makefile.in.orig Sat Sep 9 07:15:48 2000
+++ src/Makefile.in Fri Oct 13 05:51:52 2000
@@ -81,7 +81,6 @@
rm -f $(EXT_OBJS)
rm -f $(EXT_DLL_OBJS)
rm -f libopenal.a
- rm -f libopenal.$(SO_EXT).$(VERSION)
rm -f libopenal.$(SO_EXT).$(MAJOR_VERSION)
rm -f libopenal.$(SO_EXT)
rm -f core
@@ -103,8 +102,8 @@
libopenal.so: $(AL_OBJS) $(ALC_OBJS) $(AC_OBJS) $(ALUT_OBJS) extensions
$(CC) -shared \
-Wl,-soname \
- -Wl,libopenal-$(MAJOR_VERSION).$(MINOR_VERSION).so \
- -o libopenal.so.$(VERSION) \
+ -Wl,libopenal.so.$(MAJOR_VERSION) \
+ -o libopenal.so.$(MAJOR_VERSION) \
$(AL_OBJS) \
$(ALC_OBJS) \
$(AC_OBJS) \

View file

@ -1,14 +1,17 @@
include/AL/al.h
include/AL/alc.h
include/AL/alu.h
include/AL/alut.h
include/AL/altypes.h
include/AL/alctypes.h
include/AL/alutypes.h
include/AL/aluttypes.h
include/AL/alkludge.h
include/AL/alkludgetypes.h
include/AL/altypes.h
include/AL/alu.h
include/AL/alut.h
include/AL/aluttypes.h
include/AL/alutypes.h
@unexec install-info --delete %D/info/openal.info %D/info/dir
info/openal.info
@exec install-info %D/info/openal.info %D/info/dir
lib/libopenal.a
lib/libopenal.so
lib/libopenal.so.0
lib/libopenal.so.0.0.4
@dirrm include/AL