View | Details | Raw Unified | Return to bug 55515 | Differences between
and this patch

Collapse All | Expand All

(-)bsd.port.mk (-112 / +4 lines)
Lines 306-334 Link Here
306
#				  CPPFLAGS and LDFLAGS in CONFIGURE_ENV.
306
#				  CPPFLAGS and LDFLAGS in CONFIGURE_ENV.
307
#				  Default: not set.
307
#				  Default: not set.
308
##
308
##
309
# USE_PERL5		- Says that the port uses perl5 for building and running.
310
# USE_PERL5_BUILD	- Says that the port uses perl5 for building.
311
# USE_PERL5_RUN		- Says that the port uses perl5 for running.
312
# PERL5			- Set to full path of perl5, either in the system or
313
#				  installed from a port.
314
# PERL			- Set to full path of perl5, either in the system or
315
#				  installed from a port, but without the version number.
316
#				  Use this if you need to replace "#!" lines in scripts.
317
# PERL_VERSION	- Full version of perl5 (see below for current value).
318
# PERL_VER		- Short version of perl5 (see below for current value).
319
# PERL_LEVEL	- Perl version as an integer of the form MNNNPP, where
320
#					M is major version, N is minor version, and P is
321
#					the patch level. E.g., PERL_VERSION=5.6.1 would give
322
#					a PERL_LEVEL of 500601. This can be used in comparisons
323
#					to determine if the version of perl is high enough,
324
#					whether a particular dependency is needed, etc.
325
# PERL_ARCH		- Directory name of architecture dependent libraries
326
#				  (value: ${ARCH}-freebsd).
327
# PERL_PORT		- Name of the perl port that is installed
328
#				  (value: perl5)
329
# SITE_PERL		- Directory name where site specific perl packages go.
330
#					This value is added to PLIST_SUB.
331
##
332
# USE_BISON		- Says that the port uses bison for building.
309
# USE_BISON		- Says that the port uses bison for building.
333
##
310
##
334
# USE_IMAKE		- Says that the port uses imake.  Implies USE_X_PREFIX.
311
# USE_IMAKE		- Says that the port uses imake.  Implies USE_X_PREFIX.
Lines 958-979 Link Here
958
PREFIX?=		${LOCALBASE}
935
PREFIX?=		${LOCALBASE}
959
.endif
936
.endif
960
937
961
.if !defined(PERL_LEVEL) && defined(PERL_VERSION)
962
perl_major=		${PERL_VERSION:C|^([1-9]+).*|\1|}
963
_perl_minor=	00${PERL_VERSION:C|^([1-9]+)\.([0-9]+).*|\2|}
964
perl_minor=		${_perl_minor:C|^.*(...)|\1|}
965
.if ${perl_minor} >= 100
966
perl_minor=		${PERL_VERSION:C|^([1-9]+)\.([0-9][0-9][0-9]).*|\2|}
967
perl_patch=		${PERL_VERSION:C|^.*(..)|\1|}
968
.else # ${perl_minor} < 100
969
_perl_patch=	0${PERL_VERSION:C|^([1-9]+)\.([0-9]+)\.*|0|}
970
perl_patch=		${_perl_patch:C|^.*(..)|\1|}
971
.endif # ${perl_minor} < 100
972
PERL_LEVEL=	${perl_major}${perl_minor}${perl_patch}
973
.else
974
PERL_LEVEL=0
975
.endif # !defined(PERL_LEVEL) && defined(PERL_VERSION)
976
977
.if defined(USE_OPENSSL)
938
.if defined(USE_OPENSSL)
978
.if ${OSVERSION} >= 400014
939
.if ${OSVERSION} >= 400014
979
.if !exists(/usr/lib/libcrypto.so)
940
.if !exists(/usr/lib/libcrypto.so)
Lines 1032-1037 Link Here
1032
.include "${PORTSDIR}/Mk/bsd.ruby.mk"
993
.include "${PORTSDIR}/Mk/bsd.ruby.mk"
1033
.endif
994
.endif
1034
995
996
.if defined(USE_PERL5) || defined(PERL_CONFIGURE)
997
.include "${PORTSDIR}/Mk/bsd.perl.mk"
998
.endif
999
1035
.if defined(USE_QT) || defined(USE_QT2) || defined(USE_QT_VER) || defined(USE_KDELIBS_VER) || defined(USE_KDEBASE_VER)
1000
.if defined(USE_QT) || defined(USE_QT2) || defined(USE_QT_VER) || defined(USE_KDELIBS_VER) || defined(USE_KDEBASE_VER)
1036
.include "${PORTSDIR}/Mk/bsd.kde.mk"
1001
.include "${PORTSDIR}/Mk/bsd.kde.mk"
1037
.endif
1002
.endif
Lines 1413-1476 Link Here
1413
.endif
1378
.endif
1414
.endif
1379
.endif
1415
1380
1416
.if ${OSVERSION} >= 500032
1417
PERL_VERSION?=	5.6.1
1418
PERL_VER?=		5.6.1
1419
PERL_ARCH?=		mach
1420
.else
1421
.if ${OSVERSION} >= 500007
1422
PERL_VERSION?=	5.6.0
1423
PERL_VER?=		5.6.0
1424
PERL_ARCH?=		mach
1425
.else
1426
.if ${OSVERSION} >= 300000
1427
PERL_VERSION?=	5.00503
1428
.else
1429
PERL_VERSION?=	5.00502
1430
.endif
1431
PERL_VER?=		5.005
1432
PERL_ARCH?=		${ARCH}-freebsd
1433
.endif
1434
.endif
1435
1436
.if ${PERL_LEVEL} >= 500800
1437
PERL_PORT?=	perl5.8
1438
.else
1439
PERL_PORT?=	perl5
1440
.endif
1441
1442
SITE_PERL?=	${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}
1443
1444
PLIST_SUB+=		PERL_VERSION=${PERL_VERSION} \
1445
				PERL_VER=${PERL_VER} \
1446
				PERL_ARCH=${PERL_ARCH} \
1447
				SITE_PERL=${SITE_PERL:S|^${LOCALBASE}/||}
1448
1449
.if defined(PERL_CONFIGURE)
1450
USE_PERL5=	yes
1451
USE_REINPLACE=yes
1452
.endif
1453
1454
.if exists(/usr/bin/perl5) && ${OSVERSION} >= 300000 && ${OSVERSION} < 500036
1455
.if !exists(/usr/bin/perl${PERL_VERSION}) && ( defined(USE_PERL5) || \
1456
	defined(USE_PERL5_BUILD) || defined(USE_PERL5_RUN) )
1457
pre-everything::
1458
	@${ECHO_CMD} "Error: you don't have the right version of perl in /usr/bin."
1459
	@${FALSE}
1460
.endif
1461
PERL5=			/usr/bin/perl${PERL_VERSION}
1462
PERL=			/usr/bin/perl
1463
.else
1464
PERL5=			${LOCALBASE}/bin/perl${PERL_VERSION}
1465
PERL=			${LOCALBASE}/bin/perl
1466
.if defined(USE_PERL5) || defined(USE_PERL5_BUILD)
1467
BUILD_DEPENDS+=	${PERL5}:${PORTSDIR}/lang/${PERL_PORT}
1468
.endif
1469
.if defined(USE_PERL5) || defined(USE_PERL5_RUN)
1470
RUN_DEPENDS+=	${PERL5}:${PORTSDIR}/lang/${PERL_PORT}
1471
.endif
1472
.endif
1473
1474
.if defined(USE_XLIB)
1381
.if defined(USE_XLIB)
1475
.if ${XFREE86_VERSION} == 3
1382
.if ${XFREE86_VERSION} == 3
1476
# Don't try to build XFree86-3 even if ALWAYS_BUILD_DEPENDS is defined --
1383
# Don't try to build XFree86-3 even if ALWAYS_BUILD_DEPENDS is defined --
Lines 2207-2220 Link Here
2207
LATEST_LINK?=		${PKGBASE}
2114
LATEST_LINK?=		${PKGBASE}
2208
PKGLATESTFILE=		${PKGLATESTREPOSITORY}/${LATEST_LINK}${PKG_SUFX}
2115
PKGLATESTFILE=		${PKGLATESTREPOSITORY}/${LATEST_LINK}${PKG_SUFX}
2209
2116
2210
.if defined(PERL_CONFIGURE)
2211
CONFIGURE_ARGS+=	CC="${CC}" CCFLAGS="${CFLAGS}" PREFIX="${PREFIX}" \
2212
			INSTALLPRIVLIB="${PREFIX}/lib" INSTALLARCHLIB="${PREFIX}/lib"
2213
CONFIGURE_SCRIPT?=	Makefile.PL
2214
MAN3PREFIX?=		${PREFIX}/lib/perl5/${PERL_VERSION}
2215
.undef HAS_CONFIGURE
2216
.endif
2217
2218
CONFIGURE_SCRIPT?=	configure
2117
CONFIGURE_SCRIPT?=	configure
2219
CONFIGURE_TARGET?=	${MACHINE_ARCH}-portbld-freebsd${OSREL}
2118
CONFIGURE_TARGET?=	${MACHINE_ARCH}-portbld-freebsd${OSREL}
2220
CONFIGURE_LOG?=		config.log
2119
CONFIGURE_LOG?=		config.log
Lines 2860-2872 Link Here
2860
			 ${ECHO_CMD} "      on your system (e.g. an \`ls ${PKG_DBDIR}\`).") | /usr/bin/fmt 75 79 ; \
2759
			 ${ECHO_CMD} "      on your system (e.g. an \`ls ${PKG_DBDIR}\`).") | /usr/bin/fmt 75 79 ; \
2861
			 ${FALSE}; \
2760
			 ${FALSE}; \
2862
		fi)
2761
		fi)
2863
.endif
2864
.if defined(PERL_CONFIGURE)
2865
	@cd ${CONFIGURE_WRKSRC} && \
2866
		${SETENV} ${CONFIGURE_ENV} \
2867
		${PERL5} ./${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS}
2868
	@cd ${CONFIGURE_WRKSRC} && \
2869
		${PERL5} -pi -e 's/ doc_(perl|site|\$$\(INSTALLDIRS\))_install$$//' Makefile
2870
.endif
2762
.endif
2871
.if defined(USE_IMAKE)
2763
.if defined(USE_IMAKE)
2872
	@(cd ${CONFIGURE_WRKSRC}; ${SETENV} ${MAKE_ENV} ${XMKMF})
2764
	@(cd ${CONFIGURE_WRKSRC}; ${SETENV} ${MAKE_ENV} ${XMKMF})

Return to bug 55515