# New ports collection makefile for: gambas2-base # Date created: 2009-01-16 # Whom: Jose Alonso Cardenas Marquez # # $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 .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