openbsd-ports/editors/ted/Makefile

71 lines
2.0 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.23 2011/04/10 18:01:13 jasper Exp $
2001-04-18 11:02:45 -04:00
2010-11-15 18:22:07 -05:00
COMMENT = X11 based RTF editor
V = 2.17
DISTNAME = ted-$V
REVISION = 2
2010-11-15 18:22:07 -05:00
CATEGORIES = editors textproc print
HOMEPAGE = http://www.nllgg.nl/Ted/
MASTER_SITES = ftp://ftp.nluug.nl/pub/editors/ted/
2001-04-18 11:02:45 -04:00
2010-11-15 18:22:07 -05:00
DISTFILES = ted-$V.src.tar.gz
2001-04-18 11:02:45 -04:00
# GPL
2010-11-15 18:22:07 -05:00
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_FTP = Yes
PERMIT_PACKAGE_CDROM = Yes
PERMIT_DISTFILES_CDROM =Yes
2010-10-23 14:26:19 -04:00
WANTLIB += ICE SM X11 Xext Xmu Xpm Xt c m pthread-stubs xcb z
WANTLIB += png jpeg tiff Xm
2004-11-24 06:08:02 -05:00
2010-11-15 18:22:07 -05:00
MAINTAINER = Marc Espie <espie@openbsd.org>
2001-04-18 11:02:45 -04:00
2010-11-15 18:22:07 -05:00
WRKDIST = ${WRKDIR}/Ted-$V
LIB_DEPENDS = graphics/png \
graphics/jpeg \
graphics/tiff \
x11/openmotif
MAKE_ENV+=MOTIFLIB='-L${LOCALBASE}/lib -lXm'
2001-04-18 11:02:45 -04:00
2010-11-15 18:22:07 -05:00
ALL_TARGET = compile.shared
SHARED_ONLY = Yes
NO_REGRESS = Yes
2001-04-18 11:02:45 -04:00
2010-11-15 18:22:07 -05:00
AFMDIR = ${PREFIX}/share/Ted/afm
INDDIR = ${PREFIX}/share/Ted/ind
INFODIR = ${PREFIX}/share/doc/Ted
2001-04-18 11:02:45 -04:00
post-extract:
cd ${WRKDIST}/tedPackage && tar xf TedBindist.tar
pre-configure:
2002-03-25 15:21:54 -05:00
cd ${WRKDIST}/tedPackage/Ted && \
2001-04-18 11:02:45 -04:00
sed -e 's,/usr/local/afm,${AFMDIR},' \
-e 's,/usr/local/ind,${INDDIR},' \
-e 's,/usr/local/info,${INFODIR},' \
2002-03-25 15:21:54 -05:00
-e 's,/usr/local/Ted/TedDocument-en_US.rtf,${INFODIR}/TedDocument-en_US.rtf,' \
2001-04-18 11:02:45 -04:00
Ted.ad.sample >Ted
for d in ${WRKSRC}/Ted ${WRKSRC}/appFrame; do \
cd $$d && \
2002-03-25 15:21:54 -05:00
touch config.h.in && mv -f config.h.in config.h.in.bak && \
2001-04-18 11:02:45 -04:00
echo '#define PREFIX "${PREFIX}"' >config.h.in && \
echo '#define INFODIR "${INFODIR}"' >>config.h.in && \
echo '#define INDDIR "${INDDIR}"' >>config.h.in && \
echo '#define AFMDIR "${AFMDIR}"' >>config.h.in && \
cat config.h.in.bak >>config.h.in; \
done
2010-11-15 18:22:07 -05:00
#CFLAGS += -DAFMDIR=${AFMDIR} -DINDDIR=${INDDIR} -DINFODIR=${INFODIR}
2001-04-18 11:02:45 -04:00
do-install:
${INSTALL_PROGRAM} ${WRKBUILD}/Ted/Ted ${PREFIX}/bin/Ted
${INSTALL_DATA_DIR} ${AFMDIR}
${INSTALL_DATA} ${WRKDIST}/tedPackage/afm/* ${AFMDIR}
${INSTALL_DATA_DIR} ${INDDIR}
${INSTALL_DATA_DIR} ${INFODIR}
2002-03-25 15:21:54 -05:00
${INSTALL_DATA} ${WRKDIST}/tedPackage/Ted/TedDocument-en_US.rtf ${INFODIR}
${INSTALL_DATA} ${WRKDIST}/tedPackage/Ted/Ted ${PREFIX}/lib/X11/app-defaults
2001-04-18 11:02:45 -04:00
.include <bsd.port.mk>