mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-03 06:04:53 +00:00
- Fix build with Clang, respect CC and CFLAGS
- Set license
This commit is contained in:
parent
f827f89ed2
commit
d98d4f7da2
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=278597
@ -15,6 +15,8 @@ EXTRACT_SUFX= .tgz
|
||||
MAINTAINER= pgj@FreeBSD.org
|
||||
COMMENT= Program set interconverts between various bibliography formats
|
||||
|
||||
LICENSE= GPLv2
|
||||
|
||||
USE_GMAKE= yes
|
||||
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}_${PORTVERSION}
|
||||
|
@ -1,6 +1,32 @@
|
||||
--- ./Makefile_start.orig 2010-04-08 18:31:00.000000000 +0200
|
||||
+++ ./Makefile_start 2010-05-15 00:21:58.000000000 +0200
|
||||
@@ -34,6 +34,7 @@
|
||||
--- ./Makefile_start.orig 2010-10-10 19:42:50.000000000 +0200
|
||||
+++ ./Makefile_start 2011-07-31 01:06:08.000000000 +0200
|
||||
@@ -1,6 +1,6 @@
|
||||
POSTFIX=REPLACE_POSTFIX
|
||||
-CC = REPLACE_CC
|
||||
-RANLIB=REPLACE_RANLIB
|
||||
+%%SET_CC%%
|
||||
+%%SET_RANLIB%%
|
||||
INSTALLDIR=REPLACE_INSTALLDIR
|
||||
LIBINSTALLDIR=REPLACE_LIBINSTALLDIR
|
||||
|
||||
@@ -12,8 +12,8 @@
|
||||
xml2ads xml2bib xml2end xml2isi xml2ris xml2wordbib modsclean
|
||||
|
||||
all : FORCE
|
||||
- cd lib; make -k $(CC) -k $(RANLIB); cd ..
|
||||
- cd bin; make -k $(CC) -k VERSION="$(VERSION)" -k DATE="$(DATE)"; cd ..
|
||||
+ cd lib; make ; cd ..
|
||||
+ cd bin; make VERSION="$(VERSION)" DATE="$(DATE)"; cd ..
|
||||
|
||||
clean: FORCE
|
||||
cd lib ; make clean ; cd ..
|
||||
@@ -31,11 +31,12 @@
|
||||
cd bin ; make test; cd ..
|
||||
|
||||
install: all FORCE
|
||||
- cd lib ; make -k LIBINSTALLDIR=$(LIBINSTALLDIR) install; cd ..
|
||||
+ cd lib ; make LIBINSTALLDIR=$(LIBINSTALLDIR) install; cd ..
|
||||
sed 's/VERSION/${VERSION}/g' packageconfig_start > lib/bibutils.pc
|
||||
@for p in ${PROGRAMS}; \
|
||||
do ( cp bin/$$p ${INSTALLDIR}/$$p ); \
|
||||
done
|
||||
|
11
textproc/bibutils/files/patch-bin__Makefile
Normal file
11
textproc/bibutils/files/patch-bin__Makefile
Normal file
@ -0,0 +1,11 @@
|
||||
--- ./bin/Makefile.orig 2010-10-10 19:49:05.000000000 +0200
|
||||
+++ ./bin/Makefile 2011-07-31 01:05:18.000000000 +0200
|
||||
@@ -2,7 +2,7 @@
|
||||
# bibutils converters MAKEFILE
|
||||
#
|
||||
|
||||
-CFLAGS = -I ../lib
|
||||
+CFLAGS += -I ../lib
|
||||
LIBDIR = -L../lib
|
||||
|
||||
TOMODS = bibprog.o tomods.o args.o ../lib/modsout.o
|
11
textproc/bibutils/files/patch-bin__Makefile.dynamic
Normal file
11
textproc/bibutils/files/patch-bin__Makefile.dynamic
Normal file
@ -0,0 +1,11 @@
|
||||
--- ./bin/Makefile.dynamic.orig 2010-10-10 19:07:17.000000000 +0200
|
||||
+++ ./bin/Makefile.dynamic 2011-07-31 01:05:18.000000000 +0200
|
||||
@@ -4,7 +4,7 @@
|
||||
# dynamic linkage version
|
||||
#
|
||||
|
||||
-CFLAGS = -I ../lib
|
||||
+CFLAGS += -I ../lib
|
||||
LDFLAGS = -L ../lib
|
||||
LDLIBS = -lbibutils
|
||||
|
11
textproc/bibutils/files/patch-bin__Makefile.static
Normal file
11
textproc/bibutils/files/patch-bin__Makefile.static
Normal file
@ -0,0 +1,11 @@
|
||||
--- ./bin/Makefile.static.orig 2010-10-08 01:57:09.000000000 +0200
|
||||
+++ ./bin/Makefile.static 2011-07-31 01:05:18.000000000 +0200
|
||||
@@ -2,7 +2,7 @@
|
||||
# bibutils converters MAKEFILE
|
||||
#
|
||||
|
||||
-CFLAGS = -I ../lib
|
||||
+CFLAGS += -I ../lib
|
||||
LIBDIR = -L../lib
|
||||
|
||||
TOMODS = bibprog.o tomods.o args.o ../lib/modsout.o
|
13
textproc/bibutils/files/patch-configure
Normal file
13
textproc/bibutils/files/patch-configure
Normal file
@ -0,0 +1,13 @@
|
||||
--- ./configure.orig 2010-10-10 19:38:32.000000000 +0200
|
||||
+++ ./configure 2011-07-31 01:05:18.000000000 +0200
|
||||
@@ -153,8 +153,8 @@
|
||||
endif
|
||||
|
||||
cat $INPUT_FILE | \
|
||||
-sed "s/REPLACE_CC/CC=${CC}/" | \
|
||||
-sed "s/REPLACE_RANLIB/RANLIB=${RANLIB}/" | \
|
||||
+sed "s/%%SET_CC%%/CC?=${CC}/" | \
|
||||
+sed "s/%%SET_RANLIB%%/RANLIB?=${RANLIB}/" | \
|
||||
sed "s|REPLACE_INSTALLDIR|${INSTALLDIR}|" | \
|
||||
sed "s|REPLACE_LIBINSTALLDIR|${LIBINSTALLDIR}|" | \
|
||||
sed "s/REPLACE_POSTFIX/${POSTFIX}/" > $OUTPUT_FILE
|
24
textproc/bibutils/files/patch-lib__Makefile.static
Normal file
24
textproc/bibutils/files/patch-lib__Makefile.static
Normal file
@ -0,0 +1,24 @@
|
||||
--- ./lib/Makefile.static.orig 2010-10-08 01:57:00.000000000 +0200
|
||||
+++ ./lib/Makefile.static 2011-07-31 01:05:18.000000000 +0200
|
||||
@@ -1,5 +1,5 @@
|
||||
#CC = gcc -Wall
|
||||
-RANLIB = echo
|
||||
+#RANLIB = echo
|
||||
|
||||
SIMPLE_OBJS = is_ws.o strsearch.o charsets.o
|
||||
|
||||
@@ -31,12 +31,10 @@
|
||||
all: libbibcore.a libbibutils.a
|
||||
|
||||
libbibcore.a: $(BIBCORE_OBJS)
|
||||
- ar -cr $@ $^
|
||||
- $(RANLIB) $@
|
||||
+ $(AR) -cr $@ $^
|
||||
|
||||
libbibutils.a: $(BIBUTILS_OBJS)
|
||||
- ar -cr $@ $^
|
||||
- $(RANLIB) $@
|
||||
+ $(AR) -cr $@ $^
|
||||
|
||||
clean:
|
||||
/bin/rm -f *.o core
|
Loading…
Reference in New Issue
Block a user