freebsd-ports/lang/elk/Makefile
Martin Wilke 3e4ed01146 - 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

51 lines
1.2 KiB
Makefile

# New ports collection makefile for: elk
# Date created: 08 March 1995
# Whom: Thomas Gellekum <tg@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= elk
PORTVERSION= 3.99.7
PORTREVISION= 1
CATEGORIES= lang scheme
MASTER_SITES= http://sam.zoy.org/elk/
MAINTAINER= ports@FreeBSD.org
COMMENT= An embeddable Scheme interpreter
LIB_DEPENDS= gdbm.3:${PORTSDIR}/databases/gdbm \
elf.0:${PORTSDIR}/devel/libelf
USE_BZIP2= yes
USE_MOTIF= yes
USE_AUTOTOOLS= libtool:15
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
USE_LDCONFIG= yes
MAN1= elk.1
CPPFLAGS= -I${LOCALBASE}/include/libelf -I${LOCALBASE}/include
LDFLAGS= -L${LOCALBASE}/lib
.include <bsd.port.pre.mk>
.if ${ARCH} == "amd64"
CFLAGS= -O0
.endif
post-patch:
@${REINPLACE_CMD} -e '/^SUBDIRS/s|doc examples||g' ${WRKSRC}/Makefile.in
post-install:
${INSTALL_MAN} ${WRKSRC}/doc/man/elk.1 ${MANPREFIX}/man/man1
.if !defined(NOPORTDOCS)
@${MKDIR} ${EXAMPLESDIR}
@${TAR} -C ${WRKSRC}/examples --exclude "*Makefile*" -cf - . | \
${TAR} -C ${EXAMPLESDIR} --unlink -xf -
@${CHOWN} -R ${SHAREMODE}:${SHAREGRP} ${EXAMPLESDIR}
@${FIND} ${EXAMPLESDIR}/ -type f -exec ${CHMOD} ${SHAREMODE} {} \;
.endif
.include <bsd.port.post.mk>