freebsd-ports/textproc/uni2ascii/Makefile
Emanuel Haupt dddf9a1051 Fix build on FreeBSD prior to OSVERSION 800067 by pulling in devel/libgetline
Notified by:	andrew clarke <mail@ozzmosis.com>
2010-08-31 07:51:34 +00:00

40 lines
931 B
Makefile

# New ports collection makefile for: uni2ascii
# Date created: 12 Sep 2005
# Whom: Emanuel Haupt <ehaupt@critical.ch>
#
# $FreeBSD$
#
PORTNAME= uni2ascii
PORTVERSION= 4.15
CATEGORIES= textproc
MASTER_SITES= http://billposer.org/Software/Downloads/ \
CRITICAL
MAINTAINER= ehaupt@FreeBSD.org
COMMENT= Convert between UTF-8 Unicode and 7-bit ASCII equivalents
GNU_CONFIGURE= yes
USE_BZIP2= yes
MAKE_JOBS_SAFE= yes
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.post.mk>