summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authorEmanuel Haupt <ehaupt@FreeBSD.org>2010-08-31 07:51:34 +0000
committerEmanuel Haupt <ehaupt@FreeBSD.org>2010-08-31 07:51:34 +0000
commitdddf9a10511668eda36564fb52e4aa89e6ecd475 (patch)
treeb8cdc3ac81f03759c174f756229668e344db9866 /textproc
parent- Update to 0.9.7.1 (diff)
Fix build on FreeBSD prior to OSVERSION 800067 by pulling in devel/libgetline
Notified by: andrew clarke <mail@ozzmosis.com>
Notes
Notes: svn path=/head/; revision=260260
Diffstat (limited to 'textproc')
-rw-r--r--textproc/uni2ascii/Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/textproc/uni2ascii/Makefile b/textproc/uni2ascii/Makefile
index a1f6641f0d51..990803124f7d 100644
--- a/textproc/uni2ascii/Makefile
+++ b/textproc/uni2ascii/Makefile
@@ -18,15 +18,23 @@ GNU_CONFIGURE= yes
USE_BZIP2= yes
MAKE_JOBS_SAFE= yes
-MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}"
+MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
MAN1= uni2ascii.1 ascii2uni.1
PLIST_FILES= bin/uni2ascii bin/ascii2uni
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 800067
+LIB_DEPENDS= getline.1:${PORTSDIR}/devel/libgetline
+LDFLAGS+= -lgetline
+CFLAGS+= -I${LOCALBASE}/include -L${LOCALBASE}/lib
+.endif
+
do-install:
.for f in ${PORTNAME} ascii2uni
${INSTALL_PROGRAM} ${WRKSRC}/${f} ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/${f}.1 ${MAN1PREFIX}/man/man1
.endfor
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>