summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authorEmanuel Haupt <ehaupt@FreeBSD.org>2005-10-17 20:56:00 +0000
committerEmanuel Haupt <ehaupt@FreeBSD.org>2005-10-17 20:56:00 +0000
commit0697603752654d312709dd61fdc4d2c4d3700385 (patch)
treecb8d096730dc6c96af77a3622fc6917ddf89d1b6 /textproc
parentUpgrade to 2.0.4. (diff)
- 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/Makefile17
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>