freebsd-ports/lang/librep/Makefile

58 lines
1.6 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: librep
# Date created: 13 September 1999
# Whom: Yukihiro Nakai <nakai@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= librep
2003-06-01 02:51:02 +02:00
PORTVERSION= 0.16.2
PORTREVISION= 4
CATEGORIES= lang elisp gnome
2002-06-21 14:29:23 +02:00
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= librep
MAINTAINER= gnome@FreeBSD.org
COMMENT= An Emacs Lisp like runtime library
LIB_DEPENDS= gdbm.3:${PORTSDIR}/databases/gdbm
2001-10-15 12:02:34 +02:00
PLIST_SUB= GNUHOST=${ARCH}-pc-freebsd${OSREL:C/\..*//} VERSION=${PORTVERSION}
USE_GETTEXT= yes
USE_GMAKE= yes
INSTALLS_SHLIB= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
LIBS="-L${LOCALBASE}/lib -lxpg4 -lintl ${PTHREAD_LIBS}"
CONFIGURE_ARGS= --with-aclocaldir=${PREFIX}/share/aclocal
2001-10-29 18:37:50 +01:00
CONFIGURE_TARGET= ${ARCH}-pc-freebsd${OSREL:C/\..*//}
2003-08-17 05:51:54 +02:00
INFO= librep
# Don't use USE_X_PREFIX - the port doesn't really require X11 to run.
# The reason why it should be in X11BASE is that sawfish (primary user of
# librep) installs shared object into one of the librep's directories, so
# they have to live in the same BASE to make PLISTs working.
# This looks like a little hack, because we have to tweak MTREE_FILE as well,
# thus partially duplicating bsd.port.mk, but what other choices do we have???
PREFIX?= ${X11BASE}
.include <bsd.port.pre.mk>
.if ${OSVERSION} > 500023
LIB_DEPENDS+= gmp.6:${PORTSDIR}/math/libgmp4
.else
EXTRA_PATCHES+= ${FILESDIR}/stable-patch-src_numbers.c
.endif
.if ${X_WINDOW_SYSTEM:L} != xfree86-3
MTREE_FILE= /etc/mtree/BSD.x11.dist
.else
MTREE_FILE= /etc/mtree/BSD.x11-4.dist
.endif
post-extract:
@${RM} ${WRKSRC}/test
.include <bsd.port.post.mk>