blob: 63eef9de3f6640222c80ce9c663a6d4762c42849 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# New ports collection makefile for: gambas2-base
# Date created: 2009-01-16
# Whom: Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= gambas2
PORTVERSION= 2.12
CATEGORIES?= lang kde
MASTER_SITES= SF
MASTER_SITE_SUBDIR=${PORTNAME:S/2//g}
PKGNAMESUFFIX?= -base
DISTNAME= ${PORTNAME}-${PORTVERSION}
DIST_SUBDIR= ${PORTNAME:S/2//g}
MAINTAINER= acm@FreeBSD.org
COMMENT?= A basic language with object extensions
LIB_DEPENDS= ffi.5:${PORTSDIR}/devel/libffi
USE_AUTOTOOLS= autoconf:262:env automake:19:env
USE_BZIP2= yes
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_LIBS}
LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
CONFIGURE_ARGS= --disable-debug \
--disable-optimization
CONFIGURE_WRKSRC?= ${WRKSRC}/main
BUILD_WRKSRC?= ${WRKSRC}/main
INSTALL_WRKSRC?= ${WRKSRC}/main
EXTRACT_AFTER_ARGS= | ${TAR} -xf - "${DISTNAME}/acinclude.m4" "${DISTNAME}/component.am" \
"${DISTNAME}/config.sub" "${DISTNAME}/depcomp" "${DISTNAME}/install-sh" \
"${DISTNAME}/ltmain.sh" "${DISTNAME}/COPYING" "${DISTNAME}/config.guess" \
"${DISTNAME}/ChangeLog" "${DISTNAME}/missing" "${DISTNAME}/main"
.include <bsd.port.pre.mk>
.if ${PKGNAMESUFFIX} == "-base"
USE_KDELIBS_VER= 3
.include <${PORTSDIR}/Mk/bsd.kde.mk>
post-patch:
@${REINPLACE_CMD} -e 37,39d ${WRKSRC}/main/share/gb_common.h
@cd ${WRKSRC} && \
${FIND} * -type f -name configure -print0 | ${XARGS} -0 ${REINPLACE_CMD} \
-e 's|-pipe -Wall -Wno-unused-value -fsigned-char|$$CFLAGS|g' \
-e 's|-O0||g' -e 's|-ldl||g' -e 's|-lml||g'
@cd ${WRKSRC} && \
${FIND} -E * -type f -iregex ".*\.(c|h)" -print0 | ${XARGS} -0 ${REINPLACE_CMD} \
-e 's|#ifdef __GNU_LIBRARY__|#if defined (__GNU_LIBRARY__) \|\| \
defined (__FreeBSD__)|g' -e 's|.so.4|.so|g' -e 's|.so.3|.so|g'
.else
.include "${MASTERDIR}/Makefile.components"
.endif
.include <bsd.port.post.mk>
|