diff options
author | Emanuel Haupt <ehaupt@FreeBSD.org> | 2005-10-17 20:56:00 +0000 |
---|---|---|
committer | Emanuel Haupt <ehaupt@FreeBSD.org> | 2005-10-17 20:56:00 +0000 |
commit | 0697603752654d312709dd61fdc4d2c4d3700385 (patch) | |
tree | cb8d096730dc6c96af77a3622fc6917ddf89d1b6 /textproc | |
parent | 9ab62d8b48968a26b53c6c80fdc36b5f0d291464 (diff) | |
download | ports-0697603752654d312709dd61fdc4d2c4d3700385.tar.gz ports-0697603752654d312709dd61fdc4d2c4d3700385.zip |
- Respect PREFIX and CFLAGS
- Bump PORTREVISION
PR: 87582
Submitted by: David Le Brun <david@dyn-ns.net> (maintainer)
Approved by: novel (mentor) (implicit)
Notes
Notes:
svn path=/head/; revision=145686
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/xmlindent/Makefile | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/textproc/xmlindent/Makefile b/textproc/xmlindent/Makefile index a82545c1baea..486b836050d3 100644 --- a/textproc/xmlindent/Makefile +++ b/textproc/xmlindent/Makefile @@ -8,6 +8,7 @@ PORTNAME= xmlindent PORTVERSION= 0.2.17 +PORTREVISION= 1 CATEGORIES= textproc MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} @@ -15,13 +16,19 @@ MASTER_SITE_SUBDIR= ${PORTNAME} MAINTAINER= david@dyn-ns.net COMMENT= XML stream reformatter -USE_REINPLACE= yes -MAN1= xmlindent.1 MANCOMPRESSED= no + +SOURCES= error.c indent.c buffer.c main.c + +MAN1= xmlindent.1 PLIST_FILES= bin/xmlindent -post-patch: - @${REINPLACE_CMD} -e 's|/usr/local/|${PREFIX}|' ${WRKSRC}/Makefile - @${REINPLACE_CMD} -e 's|/share/man/|/man/|' ${WRKSRC}/Makefile +do-build: + @cd ${WRKSRC}; flex xmlindent.yy + ${CC} ${CFLAGS} ${SOURCES:C/(.*)/${WRKSRC}\/\1/} -o ${WRKSRC}/${PORTNAME} -lfl + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/${MAN1} ${MANPREFIX}/man/man1 .include <bsd.port.mk> |