1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-06 06:30:19 +00:00
freebsd-ports/lang/guile2/Makefile
Tijl Coosemans 15c4a5ecf3 Replace USE_AUTOTOOLS=libltdl with an ordinary LIB_DEPENDS in all ports.
There are only 60 such ports so there doesn't need to be a separate
keyword or USES for this.

Approved by:	portmgr (bapt)
2014-09-17 07:38:15 +00:00

61 lines
1.6 KiB
Makefile

# Created by: Muhammad Moinur Rahman <5u623l20@gmail.com>
# $FreeBSD$
PORTNAME= guile
PORTVERSION= 2.0.11
PORTREVISION= 2
CATEGORIES= lang scheme
MASTER_SITES= GNU
#MASTER_SITES= ${MASTER_SITE_GNU}
#MASTER_SITE_SUBDIR= guile
PKGNAMESUFFIX= 2
MAINTAINER= 5u623l20@gmail.com
COMMENT= GNU Ubiquitous Intelligent Language for Extension
LICENSE= LGPL21
LIB_DEPENDS= libgmp.so:${PORTSDIR}/math/gmp \
libltdl.so:${PORTSDIR}/devel/libltdl \
libunistring.so:${PORTSDIR}/devel/libunistring \
libffi.so.6:${PORTSDIR}/devel/libffi
CONFLICTS_INSTALL= guile-[0-9]*
USES= charsetfix gmake libtool ncurses pathfix pkgconfig readline
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
CPPFLAGS+= -I${LOCALBASE}/include
LIBS+= -L${LOCALBASE}/lib
INSTALL_TARGET= install-strip
PLIST_SUB= GUILE_VER=${PORTVERSION:R}
OPTIONS_DEFINE= NLS THREADS
OPTIONS_DEFAULT=THREADS
OPTIONS_SUB= yes
NLS_CONFIGURE_ENABLE= nls
NLS_USES= gettext
THREADS_CONFIGURE_WITH= threads
THREADS_LIB_DEPENDS= libgc.so:${PORTSDIR}/devel/boehm-gc-threaded
THREADS_LIB_DEPENDS_OFF= libgc.so:${PORTSDIR}/devel/boehm-gc
REINPLACE_FILES= libguile/smob.c libguile/filesys.c libguile/gc.c \
libguile/mallocs.c libguile/eval.c libguile/gc-malloc.c \
libguile/ports.c
INFO= guile r5rs
.include <bsd.port.options.mk>
post-patch:
@cd ${WRKSRC} ; \
${REINPLACE_CMD} -e 's|<malloc\.h>|<stdlib.h>|g' ${REINPLACE_FILES}
@${REINPLACE_CMD} -e 's|sys/time.h sys/timeb.h|sys/time.h |g' \
${WRKSRC}/configure
.if ${PORT_OPTIONS:MTHREADS}
@${REINPLACE_CMD} -e 's|bdw-gc|bdw-gc-threaded|g' ${WRKSRC}/configure
.endif
.include <bsd.port.mk>