mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-14 03:10:47 +00:00
ea8c8ec7da
as defined in Mk/bsd.default-versions.mk which has moved from GCC 8.3 to GCC 9.1 under most circumstances now after revision 507371. This includes ports - with USE_GCC=yes or USE_GCC=any, - with USES=fortran, - using Mk/bsd.octave.mk which in turn features USES=fortran, and - with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang, c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib plus, everything INDEX-11 shows with a dependency on lang/gcc9 now. PR: 238330
146 lines
4.8 KiB
Makefile
146 lines
4.8 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= lazarus
|
|
PORTVERSION= 2.0.0
|
|
PKGNAMESUFFIX?= -gtk2
|
|
PORTREVISION?= 1
|
|
CATEGORIES= editors devel
|
|
MASTER_SITES= SF/${PORTNAME}/Lazarus%20Zip%20_%20GZip/Lazarus%20${PORTVERSION} \
|
|
LOCAL/acm/freepascal
|
|
DIST_SUBDIR= freepascal
|
|
|
|
MAINTAINER?= acm@FreeBSD.org
|
|
COMMENT?= Portable Delphi-like IDE for the FreePascal compiler (GTK2)
|
|
|
|
CONFLICTS?= ${PORTNAME}-qt5-*
|
|
|
|
BUILD_DEPENDS?= fpcres:lang/fpc-utils
|
|
RUN_DEPENDS?= fpcres:lang/fpc-utils
|
|
|
|
ONLY_FOR_ARCHS= i386 amd64
|
|
|
|
USES= fpc gettext gmake iconv
|
|
USE_FPC?= chm cairo dblib fcl-base fcl-db fcl-fpcunit fcl-image fcl-json fcl-net \
|
|
fcl-registry fcl-res fcl-web fcl-xml fppkg gtk2 ibase iconvenc mysql \
|
|
numlib odbc opengl openssl oracle pasjpeg postgres regexpr rtl-extra \
|
|
sqlite x11
|
|
USE_XORG= x11
|
|
OPT?= "-Sgic "
|
|
|
|
MAKE_ENV= OPT=${OPT}
|
|
PLIST= ${WRKDIR}/pkg-plist
|
|
WRKSRC?= ${WRKDIR}/${PORTNAME}
|
|
DATADIR?= ${PREFIX}/share/${PORTNAME}-${PORTVERSION}
|
|
LLD_UNSAFE= yes
|
|
|
|
OPTIONS_DEFINE= GDB
|
|
GDB_DESC= Install a newest version of gdb
|
|
OPTIONS_DEFAULT= GTK2 GDB
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
LAZARUS_ARCH= ${ARCH:S,amd64,x86_64,}
|
|
|
|
BUILDNAME= ${LAZARUS_ARCH}-${OPSYS:tl}
|
|
LCL_PLATFORM?= gtk2
|
|
|
|
MAN1S= lazarus-ide.1 lazbuild.1 startlazarus.1
|
|
SUB_FILES= pkg-message
|
|
SUB_LIST+= PORTSDIR="${PORTSDIR}"
|
|
|
|
.if ${PORT_OPTIONS:MGDB}
|
|
RUN_DEPENDS+= ${LOCALBASE}/bin/gdb:devel/gdb
|
|
.endif
|
|
|
|
.if ${PKGNAMESUFFIX} == "-gtk2"
|
|
USES+= gnome
|
|
USE_GNOME= cairo gtk20 gdkpixbuf2
|
|
.endif
|
|
|
|
post-extract:
|
|
@${MKDIR} ${WRKDIR}/man1
|
|
@${MV} ${WRKSRC}/install/man/man1/lazarus-ide.1 ${WRKDIR}/man1/
|
|
@${MV} ${WRKSRC}/install/man/man1/lazbuild.1 ${WRKDIR}/man1/
|
|
@${MV} ${WRKSRC}/install/man/man1/startlazarus.1 ${WRKDIR}/man1/
|
|
@${MV} ${WRKSRC}/examples ${WRKDIR}/examples
|
|
@${MV} ${WRKSRC}/docs ${WRKDIR}/docs
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' -e 's|%%DATADIR%%|${DATADIR}|g' ${WRKSRC}/${MAKEFILE}
|
|
|
|
do-build:
|
|
@cd ${WRKSRC} && \
|
|
${SETENV} ${MAKE_ENV} ${MAKE_CMD} bigide LCL_PLATFORM=${LCL_PLATFORM}
|
|
@cd ${WRKSRC} && \
|
|
${SETENV} ${MAKE_ENV} ${MAKE_CMD} tools LCL_PLATFORM=${LCL_PLATFORM}
|
|
|
|
post-build:
|
|
@cd ${WRKSRC} && \
|
|
${RM} -R COPYING* README* debian localize.bat test *.orig *.bak startlazarus.app \
|
|
ide/Makefile*.orig ide/Makefile*.bak
|
|
|
|
pre-install:
|
|
@${ECHO} "#!/bin/sh" > ${WRKDIR}/lazarus-wrapper
|
|
@${ECHO} "cd ${DATADIR} || exit 1 " >> ${WRKDIR}/lazarus-wrapper
|
|
@${ECHO} "exec ./startlazarus" >> ${WRKDIR}/lazarus-wrapper
|
|
|
|
@${RM} ${PLIST}
|
|
@${RM} -r ${WRKSRC}/components/chmhelp/lhelp/lhelp.app/Contents/MacOS \
|
|
${WRKSRC}/lazarus.app/Contents/MacOS \
|
|
${WRKSRC}/lazarus.app/Contents/Resources/startlazarus.app/Contents/MacOS
|
|
|
|
. for FILE in bin/lazarus bin/lazbuild
|
|
@${ECHO_CMD} ${FILE} >> ${PLIST}
|
|
. endfor
|
|
. for m in ${MAN1S}
|
|
@${ECHO_CMD} man/man1/${m}.gz >> ${PLIST}
|
|
. endfor
|
|
|
|
@${ECHO_CMD} "%%DATADIR%%/docs" >> ${PLIST}
|
|
@cd ${WRKDIR}/docs && \
|
|
${FIND} * -type f | ${SORT} | ${SED} -e 's|^|%%DOCSDIR%%/|' >> ${PLIST}
|
|
|
|
@${ECHO_CMD} "%%DATADIR%%/examples" >> ${PLIST}
|
|
@cd ${WRKDIR}/examples && \
|
|
${FIND} * -type f | ${SORT} | ${SED} -e 's|^|%%EXAMPLESDIR%%/|' >> ${PLIST} && \
|
|
${FIND} * -type d -empty | ${SORT} | ${SED} -e 's|^|@dir %%EXAMPLESDIR%%/|' >> ${PLIST}
|
|
|
|
@cd ${WRKSRC} && \
|
|
${FIND} * -type f | ${SORT} | ${SED} -e 's|^|%%DATADIR%%/|' >> ${PLIST} && \
|
|
${FIND} * -type d -empty | ${SORT} | ${SED} -e 's|^|@dir %%DATADIR%%/|' >> ${PLIST}
|
|
|
|
do-install:
|
|
.for DIRE in components converter debugger designer doceditor ide images install languages lazarus.app lcl \
|
|
packager tools units
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}/${DIRE}
|
|
@cd ${WRKSRC}/${DIRE} && \
|
|
${FIND} * -type d -exec ${MKDIR} "${STAGEDIR}${DATADIR}/${DIRE}/{}" \; && \
|
|
${FIND} * -type f -exec ${INSTALL_DATA} {} "${STAGEDIR}${DATADIR}/${DIRE}/{}" \;
|
|
.endfor
|
|
@${CHMOD} +x ${STAGEDIR}${DATADIR}/tools/svn2revisioninc ${STAGEDIR}${DATADIR}/tools/lazres ${STAGEDIR}${DATADIR}/tools/lrstolfm \
|
|
${STAGEDIR}${DATADIR}/tools/updatepofiles
|
|
|
|
.for FILE in lazarus startlazarus lazbuild
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${FILE} ${STAGEDIR}${DATADIR}
|
|
.endfor
|
|
|
|
@cd ${WRKDIR}/docs && \
|
|
${FIND} * -type d -exec ${MKDIR} "${STAGEDIR}${DOCSDIR}/{}" \; && \
|
|
${FIND} * -type f -exec ${INSTALL_DATA} {} "${STAGEDIR}${DOCSDIR}/{}" \;
|
|
@${LN} -s ${DOCSDIR} ${STAGEDIR}${DATADIR}/docs
|
|
|
|
@cd ${WRKDIR}/examples && \
|
|
${FIND} * -type d -exec ${MKDIR} "${STAGEDIR}${EXAMPLESDIR}/{}" \; && \
|
|
${FIND} * -type f -exec ${INSTALL_DATA} {} "${STAGEDIR}${EXAMPLESDIR}/{}" \;
|
|
@${LN} -s ${EXAMPLESDIR} ${STAGEDIR}${DATADIR}/examples
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/localize.sh ${STAGEDIR}${DATADIR}
|
|
${INSTALL_SCRIPT} ${WRKDIR}/lazarus-wrapper ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
|
|
${INSTALL_DATA} ${WRKSRC}/Makefile* ${WRKSRC}/fpmake* ${STAGEDIR}${DATADIR}
|
|
.for FILE in ${MAN1S}
|
|
${INSTALL_MAN} ${WRKDIR}/man1/${FILE} ${STAGEDIR}${MAN1PREFIX}/man/man1
|
|
.endfor
|
|
${LN} -s ${DATADIR}/lazbuild ${STAGEDIR}${PREFIX}/bin/lazbuild
|
|
|
|
.include <bsd.port.mk>
|