mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
- Add staging support, strip binaries
- Remove leading article from COMMENT - Use canonical names for patches
This commit is contained in:
parent
16bc575156
commit
8a41ef31ee
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=356122
@ -10,7 +10,7 @@ DISTNAME= siod
|
||||
EXTRACT_SUFX= .tgz
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= A small footprint implementation of the Scheme programming language
|
||||
COMMENT= Small footprint implementation of the Scheme programming language
|
||||
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
@ -20,9 +20,7 @@ ALL_TARGET= freebsd
|
||||
MAKE_ENV= LD_LIBRARY_PATH=.
|
||||
MAKE_JOBS_UNSAFE= yes
|
||||
|
||||
MAN1= siod.1 snapshot-dir.1 snapshot-compare.1 http-get.1 \
|
||||
cp-build.1 ftp-cp.1 csiod.1 ftp-put.1 ftp-test.1 ftp-get.1 \
|
||||
http-stress.1 proxy-server.1
|
||||
post-install:
|
||||
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/siod
|
||||
|
||||
NO_STAGE= yes
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,37 +0,0 @@
|
||||
--- makefile-- Fri Feb 20 18:22:04 1998
|
||||
+++ makefile Wed Apr 28 13:02:03 1999
|
||||
@@ -19,10 +19,10 @@
|
||||
#
|
||||
#
|
||||
MANSEC=1
|
||||
-MANDIR=$(IROOT)/usr/local/man/man$(MANSEC)
|
||||
-BINDIR=$(IROOT)/usr/local/bin
|
||||
-INCDIR=$(IROOT)/usr/local/include
|
||||
-LIBDIR=$(IROOT)/usr/local/lib
|
||||
+MANDIR=$(PREFIX)/man/man$(MANSEC)
|
||||
+BINDIR=$(PREFIX)/bin
|
||||
+INCDIR=$(PREFIX)/include
|
||||
+LIBDIR=$(PREFIX)/lib
|
||||
LIBSIODDIR=$(LIBDIR)/siod
|
||||
CP_F=cp -f
|
||||
# -Wmissing-prototypes
|
||||
@@ -270,6 +270,19 @@
|
||||
CFLAGS="$(CDEBUG)" \
|
||||
LD_EXE_LIBS="-lm -ldl" \
|
||||
build_driver
|
||||
+
|
||||
+## FreeBSD, possibly other BSDs
|
||||
+freebsd:
|
||||
+ $(MAKE) \
|
||||
+ PROGS="siod tar.so parser_pratt.so ss.so \
|
||||
+ regex.so" \
|
||||
+ CFLAGS="$(CDEBUG) $(GCCW) -DHAVE_SYS_PARAM_H $(CFLAGS) -fPIC" \
|
||||
+ LD_LIB_LIBS="-lcrypt -lm" \
|
||||
+ LD_LIB_FLAGS="-shared" \
|
||||
+ LD_EXE_FLAGS="-rdynamic -Xlinker -rpath -Xlinker $(LIBDIR) -Xlinker -rpath -Xlinker $(LIBSIODDIR)" \
|
||||
+ SO="so" \
|
||||
+ build_driver
|
||||
+
|
||||
|
||||
unknown:
|
||||
-ln -s ssiod siod
|
79
lang/siod/files/patch-makefile
Normal file
79
lang/siod/files/patch-makefile
Normal file
@ -0,0 +1,79 @@
|
||||
--- makefile.orig 2000-03-14 16:26:55.000000000 +0100
|
||||
+++ makefile 2014-06-01 15:48:40.620294169 +0200
|
||||
@@ -19,10 +19,10 @@
|
||||
#
|
||||
#
|
||||
MANSEC=1
|
||||
-MANDIR=$(IROOT)/usr/local/man/man$(MANSEC)
|
||||
-BINDIR=$(IROOT)/usr/local/bin
|
||||
-INCDIR=$(IROOT)/usr/local/include
|
||||
-LIBDIR=$(IROOT)/usr/local/lib
|
||||
+MANDIR=$(PREFIX)/man/man$(MANSEC)
|
||||
+BINDIR=$(PREFIX)/bin
|
||||
+INCDIR=$(PREFIX)/include
|
||||
+LIBDIR=$(PREFIX)/lib
|
||||
LIBSIODDIR=$(LIBDIR)/siod
|
||||
CP_F=cp -f
|
||||
# -Wmissing-prototypes
|
||||
@@ -300,6 +300,19 @@
|
||||
LD_EXE_LIBS="-lm -ldl" \
|
||||
build_driver
|
||||
|
||||
+## FreeBSD, possibly other BSDs
|
||||
+freebsd:
|
||||
+ $(MAKE) \
|
||||
+ PROGS="siod tar.so parser_pratt.so ss.so \
|
||||
+ regex.so" \
|
||||
+ CFLAGS="$(CDEBUG) $(GCCW) -DHAVE_SYS_PARAM_H $(CFLAGS) -fPIC" \
|
||||
+ LD_LIB_LIBS="-lcrypt -lm" \
|
||||
+ LD_LIB_FLAGS="-shared" \
|
||||
+ LD_EXE_FLAGS="-rdynamic -Xlinker -rpath -Xlinker $(LIBDIR) -Xlinker -rpath -Xlinker $(LIBSIODDIR)" \
|
||||
+ SO="so" \
|
||||
+ build_driver
|
||||
+
|
||||
+
|
||||
unknown:
|
||||
-ln -s ssiod siod
|
||||
$(MAKE) \
|
||||
@@ -457,30 +470,30 @@
|
||||
install: $(DISTFILES)
|
||||
@echo "Note: This does not do a build. Only installs what already"
|
||||
@echo " sits in the directory."
|
||||
- -mkdir -p $(MANDIR)
|
||||
- -mkdir -p $(BINDIR)
|
||||
- -mkdir -p $(LIBDIR)
|
||||
- -mkdir -p $(INCDIR)
|
||||
- -mkdir -p $(LIBSIODDIR)
|
||||
+ -mkdir -p $(DESTDIR)$(MANDIR)
|
||||
+ -mkdir -p $(DESTDIR)$(BINDIR)
|
||||
+ -mkdir -p $(DESTDIR)$(LIBDIR)
|
||||
+ -mkdir -p $(DESTDIR)$(INCDIR)
|
||||
+ -mkdir -p $(DESTDIR)$(LIBSIODDIR)
|
||||
-for X in $(INTO_BINDIR) ; do \
|
||||
- $(CP_F) $$X $(BINDIR) ;\
|
||||
+ $(CP_F) $$X $(DESTDIR)$(BINDIR) ;\
|
||||
done
|
||||
-for X in $(LIBFILES) ; do \
|
||||
- $(CP_F) $$X $(LIBSIODDIR) ;\
|
||||
+ $(CP_F) $$X $(DESTDIR)$(LIBSIODDIR) ;\
|
||||
done
|
||||
-for X in $(SOLIBFILES) ; do \
|
||||
for E in so sl ; do \
|
||||
- $(CP_F) $$X.$$E $(LIBSIODDIR) ;\
|
||||
+ $(BSD_INSTALL_LIB) $$X.$$E $(DESTDIR)$(LIBSIODDIR) ;\
|
||||
done ;\
|
||||
done
|
||||
-for X in $(INTO_LIBDIR) ; do \
|
||||
- $(CP_F) $$X $(LIBDIR) ;\
|
||||
+ $(BSD_INSTALL_LIB) $$X $(DESTDIR)$(LIBDIR) ;\
|
||||
done
|
||||
-for X in $(MANPAGES) ; do \
|
||||
- $(CP_F) $$X.man $(MANDIR)/$$X.$(MANSEC) ;\
|
||||
+ $(CP_F) $$X.man $(DESTDIR)$(MANDIR)/$$X.$(MANSEC) ;\
|
||||
done
|
||||
-for X in $(PUBINCS) ; do \
|
||||
- $(CP_F) $$X $(INCDIR) ;\
|
||||
+ $(CP_F) $$X $(DESTDIR)$(INCDIR) ;\
|
||||
done
|
||||
@echo "Install done."
|
||||
|
@ -39,4 +39,16 @@ lib/siod/regex.so
|
||||
lib/siod/parser_pratt.so
|
||||
lib/libsiod.so
|
||||
include/siod.h
|
||||
man/man1/cp-build.1.gz
|
||||
man/man1/csiod.1.gz
|
||||
man/man1/ftp-cp.1.gz
|
||||
man/man1/ftp-get.1.gz
|
||||
man/man1/ftp-put.1.gz
|
||||
man/man1/ftp-test.1.gz
|
||||
man/man1/http-get.1.gz
|
||||
man/man1/http-stress.1.gz
|
||||
man/man1/proxy-server.1.gz
|
||||
man/man1/siod.1.gz
|
||||
man/man1/snapshot-compare.1.gz
|
||||
man/man1/snapshot-dir.1.gz
|
||||
@dirrm lib/siod
|
||||
|
Loading…
Reference in New Issue
Block a user