eee58d187e
Before, we had: site_perl : lib/perl5/site_perl/5.18 site_perl/perl_arch : lib/perl5/site_perl/5.18/mach perl_man3 : lib/perl5/5.18/man/man3 Now we have: site_perl : lib/perl5/site_perl site_arch : lib/perl5/site_perl/mach/5.18 perl_man3 : lib/perl5/site_perl/man/man3 Modules without any .so will be installed at the same place regardless of the Perl version, minimizing the upgrade when the major Perl version is changed. It uses a version dependent directory for modules with compiled bits. As PERL_ARCH is no longer needed in plists, it has been removed from PLIST_SUB. The USE_PERL5=fixpacklist keyword is removed, the .packlist file is now always removed, as is perllocal.pod. The old site_perl and site_perl/arch directories have been kept in the default Perl @INC for all Perl ports, and will be phased out as these old Perl versions expire. PR: 194969 Differential Revision: https://reviews.freebsd.org/D1019 Exp-run by: antoine Reviewed by: perl@ Approved by: portmgr
44 lines
1.3 KiB
Makefile
44 lines
1.3 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= qtruby
|
|
PORTVERSION= ${KDE4_VERSION}
|
|
PORTREVISION= 1
|
|
CATEGORIES= devel kde ruby
|
|
MASTER_SITES= KDE/${KDE4_BRANCH}/${PORTVERSION}/src
|
|
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
|
|
DIST_SUBDIR= KDE/${PORTVERSION}
|
|
|
|
MAINTAINER= kde@FreeBSD.org
|
|
COMMENT= Ruby bindings for Qt
|
|
|
|
LIB_DEPENDS= libqwt.so:${PORTSDIR}/x11-toolkits/qwt5 \
|
|
libqscintilla2.so:${PORTSDIR}/devel/qscintilla2
|
|
|
|
USE_KDE4= kdeprefix smokeqt
|
|
USE_QT4= corelib dbus declarative gui network phonon script webkit xml \
|
|
qmake_build moc_build uic_build rcc_build
|
|
USE_RUBY= yes
|
|
USES= cmake:outsource tar:xz
|
|
USE_LDCONFIG= yes
|
|
|
|
SUB_FILES= ruby-kdebindings-env.sh pkg-message
|
|
SUB_LIST+= RUBY_SITELIBDIR=${RUBY_SITELIBDIR} \
|
|
RUBY_SITEARCHLIBDIR=${RUBY_SITEARCHLIBDIR}
|
|
|
|
CMAKE_ARGS+= -DRUBY_LIBRARY=${LOCALBASE}/lib/lib${RUBY_NAME}.so \
|
|
-DRUBY_INCLUDE_PATH=${LOCALBASE}/lib/ruby/${RUBY_VER}/${RUBY_ARCH} \
|
|
-DCUSTOM_RUBY_SITE_LIB_DIR=${RUBY_SITELIBDIR} \
|
|
-DCUSTOM_RUBY_SITE_ARCH_DIR=${RUBY_SITEARCHLIBDIR}
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -e 's|QWT_FOUND|Qwt5_FOUND|g' \
|
|
${WRKSRC}/src/CMakeLists.txt
|
|
${REINPLACE_CMD} -e 's|share/qtruby4/cmake|lib/cmake/qtruby4|g' \
|
|
${WRKSRC}/cmake/CMakeLists.txt \
|
|
${WRKSRC}/src/CMakeLists.txt
|
|
|
|
post-install:
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/env
|
|
${INSTALL_SCRIPT} ${WRKDIR}/ruby-kdebindings-env.sh ${STAGEDIR}${PREFIX}/env
|
|
|
|
.include <bsd.port.mk>
|