diff options
author | ijliao <ijliao@FreeBSD.org> | 2003-05-15 06:16:33 +0000 |
---|---|---|
committer | ijliao <ijliao@FreeBSD.org> | 2003-05-15 06:16:33 +0000 |
commit | e10ad403879c71c21c6743958c3d5641bc2cc538 (patch) | |
tree | ec8175516f1e53bf102fb1bdec226864e4973606 /chinese | |
parent | e2f84deaaa5df3fe2cc2d00536483c2a827733dc (diff) | |
download | FreeBSD-ports-e10ad403879c71c21c6743958c3d5641bc2cc538.zip FreeBSD-ports-e10ad403879c71c21c6743958c3d5641bc2cc538.tar.gz |
1. dont specify -lgnugetopt in Makefile
2. respect CFLAGS
3. utilize BSD_INSTALL_* macro
Diffstat (limited to 'chinese')
-rw-r--r-- | chinese/autoconvert/Makefile | 8 | ||||
-rw-r--r-- | chinese/autoconvert/files/patch-aa | 18 |
2 files changed, 17 insertions, 9 deletions
diff --git a/chinese/autoconvert/Makefile b/chinese/autoconvert/Makefile index 5267331..5318bc8 100644 --- a/chinese/autoconvert/Makefile +++ b/chinese/autoconvert/Makefile @@ -13,10 +13,18 @@ MASTER_SITES= http://people.debian.org/~ygh/ MAINTAINER= yinjieh@csie.nctu.edu.tw COMMENT= Intelligent Chinese encoding converter +USE_REINPLACE= yes USE_GETOPT_LONG= yes +CFLAGS+= "${CPPFLAGS}" +MAKE_ENV= CFLAG="${CPPFLAGS}" LIBS="${LDFLAGS}" INSTALLS_SHLIB= yes DATADIR= ${PREFIX}/share/${PKGNAMEPREFIX}${PORTNAME} +post-patch: +.for dir in hzconvert contrib/xchat-plugins + @${REINPLACE_CMD} -e "s|^CFLAGS|#CLFAGS|" ${WRKSRC}/${dir}/Makefile +.endfor + pre-install: @${MKDIR} ${DATADIR} .for i in ChangeLog LICENSE Readme TODO Thanks Version hz.txt procmailrc.example shed.big5 shed.gb shed.uni shed.utf7 shed.utf8 diff --git a/chinese/autoconvert/files/patch-aa b/chinese/autoconvert/files/patch-aa index 8951144..acb87a1 100644 --- a/chinese/autoconvert/files/patch-aa +++ b/chinese/autoconvert/files/patch-aa @@ -1,12 +1,12 @@ --- Makefile.orig Sat Apr 28 09:45:46 2001 -+++ Makefile Thu Aug 9 23:31:09 2001 ++++ Makefile Thu May 15 13:52:33 2003 @@ -1,7 +1,7 @@ CC=gcc -CFLAG=-O2 -g -Wall -Iinclude -LIBS= -Llib -lhz -+CFLAG+=-Iinclude -I/usr/local/include -+LIBS+=-Llib -lhz -L/usr/local/lib -lgnugetopt ++CFLAG+=-Iinclude ++LIBS+=-Llib -lhz .PHONY: all hzlib clean install-home install @@ -23,11 +23,11 @@ - install -m 755 contrib/xchat-plugins/xchat-autob5.so $(DESTDIR)/usr/share/zh-autoconvert - install -m 644 include/*.h $(DESTDIR)/usr/include - ln -s autogb $(DESTDIR)/usr/bin/autob5 -+ install -m 755 autogb $(PREFIX)/bin -+ install -m 755 lib/libhz.so.0.0 $(PREFIX)/lib/libhz.so.0 ++ ${BSD_INSTALL_PROGRAM} autogb $(PREFIX)/bin ++ ${BSD_INSTALL_PROGRAM} lib/libhz.so.0.0 $(PREFIX)/lib/libhz.so.0 + cd $(PREFIX)/lib;ln -s libhz.so.0 libhz.so -+ install -m 755 lib/libhz.a $(PREFIX)/lib -+ install -m 755 contrib/xchat-plugins/xchat-autogb.so $(PREFIX)/share/zh-autoconvert -+ install -m 755 contrib/xchat-plugins/xchat-autob5.so $(PREFIX)/share/zh-autoconvert -+ install -m 644 include/*.h $(PREFIX)/include ++ ${BSD_INSTALL_PROGRAM} lib/libhz.a $(PREFIX)/lib ++ ${BSD_INSTALL_PROGRAM} contrib/xchat-plugins/xchat-autogb.so $(PREFIX)/share/zh-autoconvert ++ ${BSD_INSTALL_PROGRAM} contrib/xchat-plugins/xchat-autob5.so $(PREFIX)/share/zh-autoconvert ++ ${BSD_INSTALL_DATA} include/*.h $(PREFIX)/include + ln -s autogb $(PREFIX)/bin/autob5 |