blob: ed42b60011d848f6bebee40e10a310e26d0e036d (
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
61
62
63
64
65
66
67
|
# 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.15.2
PORTREVISION= 2
CATEGORIES?= lang kde
MASTER_SITES= SF/${PORTNAME:S/2//g}/${PORTNAME}/${PORTVERSION}
PKGNAMESUFFIX?= -base
DIST_SUBDIR= ${PORTNAME:S/2//g}
MAINTAINER= acm@FreeBSD.org
COMMENT?= A basic language with object extensions
BUILD_DEPENDS= xdg-mime:${PORTSDIR}/devel/xdg-utils
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 \
--disable-preloading \
--with-intl-includes=${LOCALBASE}/include \
--with-intl-libraries=${LOCALBASE}/lib \
--with-conv-includes=${LOCALBASE}/include \
--with-conv-libraries=${LOCALBASE}/lib
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:
@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|-pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char|$$CXXFLAGS|g' \
-e 's|-O0||g'
@cd ${WRKSRC} && \
${FIND} -E * -type f -iregex ".*\.(c|h)" -print0 | ${XARGS} -0 ${REINPLACE_CMD} \
-e 's|.so.4|.so|g' -e 's|.so.3|.so|g'
@cd ${WRKSRC} && \
${FIND} * -type f -name Makefile.in -print0 | ${XARGS} -0 ${REINPLACE_CMD} \
-e 's|(GAMBAS_VERSION) -r|(GAMBAS_VERSION) -p -r|g'
.else
.include "${MASTERDIR}/Makefile.components"
.endif
.include <bsd.port.post.mk>
|