Edit

IABSD.fr/ports/lang/freebasic/Makefile

Branch :

  • Show log

    Commit

  • Author : sthen
    Date : 2026-02-11 15:12:24
    Hash : 1b134527
    Message : reset bcallah maintainer lines, quite a lot of timeouts which make it tricky for others to work on the ports tree, this will also bring more visible to portroach of those which are outdated

  • lang/freebasic/Makefile
  • BROKEN-i386 =	needs fixing for LLD
    
    # May also support aarch64 and arm?
    ONLY_FOR_ARCHS =	amd64 i386
    
    V =		1.05.0
    COMMENT =	open-source, multi-platform BASIC compiler
    DISTNAME =	FreeBASIC-${V}-source-openbsd
    PKGNAME =	freebasic-${V}
    REVISION =	3
    CATEGORIES =	lang
    
    HOMEPAGE =	https://www.freebasic.net/
    
    # Compiler: GPLv2+
    # Runtime and Graphics libs: LGPLv2+ with static linking exception
    PERMIT_PACKAGE =	Yes
    
    WANTLIB += c curses m pthread
    
    # Can't use upstream; no OpenBSD bootstrap.
    SITES =		https://devio.us/~bcallah/source/
    
    # Code uses GNU C extensions clang doesn't like.
    COMPILER =	ports-gcc
    COMPILER_LANGS =	c
    
    # Thus says upstream:
    # The runtime library uses libffi, in building and running.
    # And your BASIC programs will be linked against it.
    BUILD_DEPENDS =	devel/libffi
    
    RUN_DEPENDS =	devel/libffi \
    		lang/gcc/${MODGCC4_VERSION},-main
    
    USE_GMAKE =	Yes
    MAKE_FILE =	makefile
    ALL_TARGET =	bootstrap
    MAKE_FLAGS =	V=1 CC="${CC}" \
    		CFLAGS="${CFLAGS} -I${LOCALBASE}/include -I${X11BASE}/include"
    
    FAKE_FLAGS =	prefix="${DESTDIR}${PREFIX}"
    
    # A work in progress...
    NO_TEST =	Yes
    
    .if ${MACHINE_ARCH:Mamd64}
    A = x86_64
    .else
    A = x86
    .endif
    
    SUBST_VARS +=	A
    
    pre-configure:
    	sed -i 's,$${TRUEPREFIX},${TRUEPREFIX},g' \
    		${WRKSRC}/bootstrap/openbsd-${A}/fbc.c
    	sed -i 's,$${TRUEPREFIX},${TRUEPREFIX},g' \
    		${WRKSRC}/src/compiler/fbc.bas
    	grep -Rl '__FB_LINUX__' ${WRKSRC}/inc |\
    		xargs sed -i 's,__FB_LINUX__,__FB_OPENBSD__,g'
    
    .include <bsd.port.mk>