View | Details | Raw Unified | Return to bug 69997
Collapse All | Expand All

(-)bsd.port.mk.new (-3 / +60 lines)
Lines 324-330 Link Here
324
#					  (Only 3 is currently supported).  Implies inclusion
324
#					  (Only 3 is currently supported).  Implies inclusion
325
#					  of bsd.kde.mk.  Default: not set.
325
#					  of bsd.kde.mk.  Default: not set.
326
#
326
#
327
# USE_LINUX			- Set to yes to say the port needs emulators/linux_base.
327
# USE_LINUX			- Define to say that the port requires one of
328
#					  emulators/linux_base*.
329
#
330
#					  redhat6			emulators/linux_base-6
331
#					  redhat7			emulators/linux_base
332
#					  redhat8			emulators/linux_base-8
333
#					  redhat			Tries to autodetect redhat{6,7,8},
334
#										defaults to redhat7
335
#					  debian			emulators/linux_base-debian
336
#					  gentoo			emulators/linux_base-gentoo-stage1
337
#					  <anything else>	Tries to autodetect the currently
338
#										installed linux base. Defaults to
339
#										emulators/linux_base
340
#
328
#					  Default: not set.
341
#					  Default: not set.
329
# USE_LINUX_PREFIX	- controls the action of PREFIX (see above).
342
# USE_LINUX_PREFIX	- controls the action of PREFIX (see above).
330
#
343
#
Lines 1038-1044 Link Here
1038
USE_XLIB=		yes
1051
USE_XLIB=		yes
1039
.endif
1052
.endif
1040
.if defined(USE_LINUX_PREFIX)
1053
.if defined(USE_LINUX_PREFIX)
1041
USE_LINUX=		yes
1054
USE_LINUX?=		yes
1042
.endif
1055
.endif
1043
.if defined(USE_X_PREFIX)
1056
.if defined(USE_X_PREFIX)
1044
PREFIX?=		${X11BASE}
1057
PREFIX?=		${X11BASE}
Lines 1380-1386 Link Here
1380
.endif
1393
.endif
1381
1394
1382
.if defined(USE_LINUX)
1395
.if defined(USE_LINUX)
1383
RUN_DEPENDS+=	${LINUXBASE}/etc/redhat-release:${PORTSDIR}/emulators/linux_base
1396
.	if ${USE_LINUX} == "redhat6"
1397
		RUN_DEPENDS+=	${LINUXBASE}/etc/redhat-release:${PORTSDIR}/emulators/linux_base-6
1398
.	elif ${USE_LINUX} == "redhat7"
1399
		RUN_DEPENDS+=	${LINUXBASE}/etc/redhat-release:${PORTSDIR}/emulators/linux_base
1400
.	elif ${USE_LINUX} == "redhat8"
1401
		RUN_DEPENDS+=	${LINUXBASE}/etc/redhat-release:${PORTSDIR}/emulators/linux_base-8
1402
.	elif ${USE_LINUX} == "debian"
1403
		RUN_DEPENDS+=	${LINUXBASE}/etc/debian_version:${PORTSDIR}/emulators/linux_base-debian
1404
.	elif ${USE_LINUX} == "gentoo"
1405
		RUN_DEPENDS+=	${LINUXBASE}/etc/gentoo-release:${PORTSDIR}/emulators/linux_base-gentoo-stage1
1406
.	elif ${USE_LINUX} == "redhat"
1407
.		if exists(${LINUXBASE}/etc/redhat-release)
1408
			USE_LINUX_REDHAT_VERSION!=	cut -d" " -f5 ${LINUXBASE}/etc/redhat-release
1409
.			if ${USE_LINUX_REDHAT_VERSION} == "6.1"
1410
				RUN_DEPENDS+=	${LINUXBASE}/etc/redhat-release:${PORTSDIR}/emulators/linux_base-6
1411
.			elif ${USE_LINUX_REDHAT_VERSION} == "7.1"
1412
				RUN_DEPENDS+=	${LINUXBASE}/etc/redhat-release:${PORTSDIR}/emulators/linux_base
1413
.			elif ${USE_LINUX_REDHAT_VERSION} == "8.0"
1414
				RUN_DEPENDS+=	${LINUXBASE}/etc/redhat-release:${PORTSDIR}/emulators/linux_base-8
1415
.			else
1416
				RUN_DEPENDS+=	${LINUXBASE}/etc/redhat-release:${PORTSDIR}/emulators/linux_base
1417
.			endif
1418
.		else
1419
			RUN_DEPENDS+=	${LINUXBASE}/etc/redhat-release:${PORTSDIR}/emulators/linux_base
1420
.		endif
1421
.	else
1422
.		if exists(${LINUXBASE}/etc/redhat-release)
1423
			USE_LINUX_REDHAT_VERSION!=	cut -d" " -f5 ${LINUXBASE}/etc/redhat-release
1424
.			if ${USE_LINUX_REDHAT_VERSION} == "6.1"
1425
				RUN_DEPENDS+=	${LINUXBASE}/etc/redhat-release:${PORTSDIR}/emulators/linux_base-6
1426
.			elif ${USE_LINUX_REDHAT_VERSION} == "7.1"
1427
				RUN_DEPENDS+=	${LINUXBASE}/etc/redhat-release:${PORTSDIR}/emulators/linux_base
1428
.			elif ${USE_LINUX_REDHAT_VERSION} == "8.0"
1429
				RUN_DEPENDS+=	${LINUXBASE}/etc/redhat-release:${PORTSDIR}/emulators/linux_base-8
1430
.			else
1431
				RUN_DEPENDS+=	${LINUXBASE}/etc/redhat-release:${PORTSDIR}/emulators/linux_base
1432
.			endif
1433
.		elif exists(${LINUXBASE}/etc/debian_version)
1434
			RUN_DEPENDS+=	${LINUXBASE}/etc/debian_version:${PORTSDIR}/emulators/linux_base-debian
1435
.		elif exists(${LINUXBASE}/etc/gentoo-release)
1436
			RUN_DEPENDS+=	${LINUXBASE}/etc/gentoo-release:${PORTSDIR}/emulators/linux_base-gentoo-stage1
1437
.		else
1438
			RUN_DEPENDS+=	${LINUXBASE}/etc/redhat-release:${PORTSDIR}/emulators/linux_base
1439
.		endif
1440
.	endif
1384
.endif
1441
.endif
1385
1442
1386
.if defined(USE_MOTIF)
1443
.if defined(USE_MOTIF)

Return to bug 69997