2003-02-20 21:20:07 +00:00
|
|
|
# New ports collection makefile for: qemacs
|
|
|
|
# Date created: 27 January 2003
|
|
|
|
# Whom: Brad Davis <so14k@so14k.com> et al
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= qemacs
|
2007-01-22 08:31:01 +00:00
|
|
|
PORTVERSION= 0.3.1
|
2008-07-09 00:07:41 +00:00
|
|
|
PORTREVISION= 3
|
2003-02-20 21:20:07 +00:00
|
|
|
CATEGORIES= editors
|
|
|
|
MASTER_SITES= http://fabrice.bellard.free.fr/qemacs/
|
|
|
|
|
2006-01-23 20:27:33 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2007-01-22 08:31:01 +00:00
|
|
|
COMMENT= Quick Emacs - a very small but powerful UNIX editor
|
2003-02-20 21:20:07 +00:00
|
|
|
|
|
|
|
USE_GMAKE= yes
|
2007-01-22 08:31:01 +00:00
|
|
|
HAS_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS= --prefix="${PREFIX}" --make="${GMAKE}" --cc="${CC}" \
|
|
|
|
--extra-cflags="${CFLAGS}" --extra-ldflags="${LDFLAGS}"
|
2008-07-09 00:07:41 +00:00
|
|
|
USE_GCC= 3.4
|
2007-01-22 08:31:01 +00:00
|
|
|
|
|
|
|
DATADIR= ${PREFIX}/share/qe
|
|
|
|
|
2003-02-20 21:20:07 +00:00
|
|
|
MAN1= qe.1
|
2007-01-22 08:31:01 +00:00
|
|
|
MLINKS= qe.1 qemacs.1
|
|
|
|
PORTDOCS= qe-doc.html
|
|
|
|
PLIST_FILES= bin/html2png bin/qe bin/qemacs \
|
|
|
|
%%DATADIR%%/kmaps %%DATADIR%%/ligatures
|
|
|
|
PLIST_DIRS= %%DATADIR%%
|
2003-02-20 21:20:07 +00:00
|
|
|
|
2006-12-19 18:32:03 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${ARCH} == "amd64"
|
|
|
|
IGNORE= crashes on startup
|
|
|
|
.endif
|
|
|
|
|
2007-01-22 08:31:01 +00:00
|
|
|
.if defined(WITHOUT_PNG)
|
|
|
|
CONFIGURE_ARGS+= --disable-png
|
|
|
|
.else
|
|
|
|
LIB_DEPENDS+= png.5:${PORTSDIR}/graphics/png
|
|
|
|
CFLAGS+= `libpng-config --I_opts`
|
|
|
|
LDFLAGS= `libpng-config --L_opts`
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITHOUT_X11)
|
|
|
|
PKGNAMESUFFIX= -nox11
|
|
|
|
CONFIGURE_ARGS+= --disable-x11
|
|
|
|
.else
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 17:56:05 +00:00
|
|
|
USE_XORG= x11 xv xext
|
|
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2007-01-22 08:31:01 +00:00
|
|
|
.endif
|
|
|
|
|
2003-02-20 21:20:07 +00:00
|
|
|
post-patch:
|
2007-01-22 08:31:01 +00:00
|
|
|
@${FIND} ${WRKSRC} -name "Makefile" | ${XARGS} ${REINPLACE_CMD} -e \
|
|
|
|
's|-Wall -g|-Wall|g ; \
|
|
|
|
s|-m.*386||g ; \
|
|
|
|
s|-ldl||g ; \
|
|
|
|
s|-L/usr/X11R6/lib||g ; \
|
|
|
|
s|make -C|$$(MAKE) -C|g ; \
|
|
|
|
s|HOST_CC|CC|g'
|
|
|
|
@${REINPLACE_CMD} -e 's|/usr/share/doc/qemacs/|${DOCSDIR}/|g ; \
|
|
|
|
s|README.gz|qe-doc.html|g' ${WRKSRC}/qe.1
|
2003-02-20 21:20:07 +00:00
|
|
|
|
|
|
|
do-install:
|
2007-01-22 08:31:01 +00:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/html2png ${PREFIX}/bin
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/qe ${PREFIX}/bin
|
|
|
|
${LN} -sf qe ${PREFIX}/bin/qemacs
|
2003-02-20 21:20:07 +00:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/qe.1 ${MANPREFIX}/man/man1
|
2007-01-22 08:31:01 +00:00
|
|
|
@${MKDIR} ${DATADIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/kmaps ${DATADIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/ligatures ${DATADIR}
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/qe-doc.html ${DOCSDIR}
|
|
|
|
.endif
|
2003-02-20 21:20:07 +00:00
|
|
|
|
2006-12-19 18:32:03 +00:00
|
|
|
.include <bsd.port.post.mk>
|