diff options
author | Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2012-06-24 17:36:11 +0000 |
---|---|---|
committer | Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2012-06-24 17:36:11 +0000 |
commit | ba140ca367b62fbe5e6874ef210cae8c0d12a4e3 (patch) | |
tree | feef696b6e63128116238ebfeec6aa007b327992 /chinese/autoconvert/Makefile | |
parent | 0b5d50e231720c9aa450ae51a65e69965619058f (diff) | |
download | ports-ba140ca367b62fbe5e6874ef210cae8c0d12a4e3.tar.gz ports-ba140ca367b62fbe5e6874ef210cae8c0d12a4e3.zip |
- Change pre-install: to post-install:
- While I'm here:
- Add LICENSE
- Move documentation to DOCSDIR
- Convert to new options framework
- Pet portlint
- Bump PORTREVISION for package change
PR: ports/169347
Submitted by: Kit Sin <ktsin@acm.org>
Notes
Notes:
svn path=/head/; revision=299900
Diffstat (limited to 'chinese/autoconvert/Makefile')
-rw-r--r-- | chinese/autoconvert/Makefile | 32 |
1 files changed, 20 insertions, 12 deletions
diff --git a/chinese/autoconvert/Makefile b/chinese/autoconvert/Makefile index 8e4df97a05ac..9cc13870a0ee 100644 --- a/chinese/autoconvert/Makefile +++ b/chinese/autoconvert/Makefile @@ -7,27 +7,35 @@ PORTNAME= autoconvert PORTVERSION= 0.3.16 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= chinese MASTER_SITES= GOOGLE_CODE -PROJECTHOST= libhz -DISTFILES= zh-${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX} +DISTNAME= ${PKGNAMEPREFIX}${PORTNAME}-${PORTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= Intelligent Chinese encoding converter +LICENSE= GPLv2 GPLv3 +LICENSE_COMB= dual + +OPTIONS_DEFINE= DOCS + MAKE_ENV= CFLAG="${CPPFLAGS}" LIBS="${LDFLAGS}" -USE_LDCONFIG= yes MAKE_JOBS_UNSAFE= yes +USE_LDCONFIG= yes +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} + +PROJECTHOST= libhz + +.include <bsd.port.options.mk> post-patch: - @${REINPLACE_CMD} -e "s|^CFLAGS|#CFLAGS|" \ - ${WRKSRC}/contrib/xchat-plugins/Makefile - -pre-install: - @${MKDIR} ${DATADIR} -.for i in ChangeLog LICENSE Readme TODO Thanks Version - @${INSTALL_DATA} ${WRKSRC}/$i ${DATADIR} -.endfor + @${REINPLACE_CMD} -e "s|^CFLAGS|#CFLAGS|" ${WRKSRC}/contrib/xchat-plugins/Makefile + +post-install: +.if ${PORT_OPTIONS:MDOCS} + ${MKDIR} ${DOCSDIR}/ + cd ${WRKSRC}/ && ${INSTALL_DATA} ChangeLog Readme TODO Thanks Version ${DOCSDIR}/ +.endif .include <bsd.port.mk> |