mirror of
https://github.com/openbsd/ports.git
synced 2026-06-18 07:24:23 +02:00
1b13452762
tricky for others to work on the ports tree, this will also bring more visible to portroach of those which are outdated
54 lines
1.3 KiB
Makefile
54 lines
1.3 KiB
Makefile
COMMENT= Small Device C Compiler
|
|
BROKEN-sparc64= illegal operands building SDCCval.c
|
|
BROKEN-alpha= sdcc segfaults when building the device library
|
|
BROKEN-aarch64= *** BFD does not support target aarch64-unknown-openbsd6.2.
|
|
|
|
DISTNAME= sdcc-src-4.2.0
|
|
PKGNAME= ${DISTNAME:S/-src//}
|
|
EXTRACT_SUFX= .tar.bz2
|
|
CATEGORIES= devel
|
|
REVISION= 1
|
|
|
|
HOMEPAGE= https://sdcc.sourceforge.net/
|
|
|
|
# GPLv2+
|
|
PERMIT_PACKAGE= Yes
|
|
|
|
WANTLIB += ${COMPILER_LIBCXX} c m readline z
|
|
|
|
SITES= ${SITE_SOURCEFORGE:=sdcc/}
|
|
|
|
# clang6 makes sdcc regenerate its configure scripts at *BUILD* time
|
|
# so we need to add the autoconf/automake depends. We don't know
|
|
# why this is.
|
|
DPB_PROPERTIES += nojunk
|
|
|
|
# c++11
|
|
COMPILER= base-clang ports-gcc
|
|
|
|
BUILD_DEPENDS= ${RUN_DEPENDS} \
|
|
${MODGNU_AUTOCONF_DEPENDS} \
|
|
${MODGNU_AUTOMAKE_DEPENDS} \
|
|
devel/boost
|
|
RUN_DEPENDS= devel/gputils
|
|
|
|
CONFIGURE_STYLE= gnu
|
|
CONFIGURE_ARGS+= docdir=${PREFIX}/share/doc/sdcc
|
|
CONFIGURE_ENV+= sdcc_cv_c_ggdb=no \
|
|
sdcc_cv_cxx_ggdb=no \
|
|
bor_cv_c_ggdb=no \
|
|
ac_cv_lib_lex='none needed' \
|
|
CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
|
|
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"
|
|
|
|
USE_GMAKE= Yes
|
|
MAKE_ENV= AUTOCONF_VERSION="${AUTOCONF_VERSION}" \
|
|
AUTOMAKE_VERSION="${AUTOMAKE_VERSION}"
|
|
|
|
AUTOCONF_VERSION= 2.69
|
|
AUTOMAKE_VERSION= 1.11
|
|
|
|
WRKDIST= ${WRKDIR}/${PKGNAME}
|
|
|
|
.include <bsd.port.mk>
|