blob: 49d6cb30cc1565413521301a72b3447c3cb46017 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
|
# New ports collection makefile for: wdm
# Date created: August 31, 1998
# Whom: Thomas Gellekum <tg@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= wdm
PORTVERSION= 1.20
PORTREVISION= 3
CATEGORIES= x11 windowmaker
MASTER_SITES= http://www.tcscs.com/wdm/wdm/ \
http://www.de.freebsd.org/de/gif/bsd/ \
${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= tg
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${DAEMONPICS}
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= kris@FreeBSD.org
COMMENT= WINGs Display Manager; an xdm replacement
LIB_DEPENDS= wraster.4:${PORTSDIR}/x11-wm/windowmaker \
PropList.2:${PORTSDIR}/devel/libPropList
DIST_SUBDIR= wdm
USE_REINPLACE= yes
USE_X_PREFIX= yes
USE_AUTOMAKE_VER=14
AUTOMAKE_ARGS= --include-deps
DEF_SERVER?= ${X11BASE}/bin/X
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include \
-DCSRG_BASED -DHAS_SETUSERCONTEXT" \
LIBS="-L${LOCALBASE}/lib ${LIBPAM}" \
DEF_SERVER="${DEF_SERVER}"
CONFIGURE_ARGS= --with-logdir=/var/log \
--with-runlockdir=/var/run \
--with-wdmdir=${PREFIX}/lib/X11/wdm \
--with-Logo=beastie.xpm \
--with-gfx-incs=${X11BASE}/include/WINGs \
--with-gfx-libs=${X11BASE}/lib \
--with-defuserpath=/bin:/usr/bin:/sbin:/usr/sbin:${X11BASE}/bin:${LOCALBASE}/bin \
--with-defsystempath=/bin:/usr/bin:/sbin:/usr/sbin:${X11BASE}/bin \
--with-wmlist=wmaker:afterstep:blackbox:ctwm:enlightenment:fvwm:fvwm2:fvwm95:olvwm:qvwm:tvtwm
.include <bsd.port.pre.mk>
.if ${XFREE86_VERSION} == 4
CFLAGS+= -DHAVE_XINERAMA
CONFIGURE_ENV+= LIBS="-Wl,-export-dynamic ${X11BASE}/lib/libXinerama.a"
.endif
MAN1= wdm.1 wdmLogin.1
DAEMONPICS= beastie.xpm daemon1-HQ-1280x960.jpg
.if ( ${OSVERSION} >= 500028 ) && !defined(WITHOUT_PAM)
WITH_PAM= yes
.endif
.if defined(WITH_PAM)
CONFIGURE_ARGS+= --enable-pam --with-pamdir=${LOCALBASE}/etc/pam.d/
LIBPAM= -lpam
PLIST_SUB+= PAM=""
.else
PLIST_SUB+= PAM="@comment "
pre-everything::
@${ECHO_MSG} "To build this port with PAM support, define \"WITH_PAM\"."
.endif
post-patch:
@${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/doc/*.man
pre-install:
@if [ -e ${PREFIX}/lib/X11/wdm/wdm-config ]; then \
${MV} ${PREFIX}/lib/X11/wdm/wdm-config \
${PREFIX}/lib/X11/wdm/wdm-config.preserve; \
fi
@if [ -e ${PREFIX}/lib/X11/wdm/Xsetup_0 ]; then \
${MV} ${PREFIX}/lib/X11/wdm/Xsetup_0 \
${PREFIX}/lib/X11/wdm/Xsetup_0.preserve; \
fi
post-install:
@${CP} ${PREFIX}/lib/X11/wdm/wdm-config \
${PREFIX}/lib/X11/wdm/wdm-config.dist
@if [ -e ${PREFIX}/lib/X11/wdm/wdm-config.preserve ]; then \
${MV} ${PREFIX}/lib/X11/wdm/wdm-config.preserve \
${PREFIX}/lib/X11/wdm/wdm-config; \
fi
@${CP} ${PREFIX}/lib/X11/wdm/Xsetup_0 \
${PREFIX}/lib/X11/wdm/Xsetup_0.dist
@if [ -e ${PREFIX}/lib/X11/wdm/Xsetup_0.preserve ]; then \
${MV} ${PREFIX}/lib/X11/wdm/Xsetup_0.preserve \
${PREFIX}/lib/X11/wdm/Xsetup_0; \
fi
.for file in ${DAEMONPICS}
@${INSTALL_DATA} ${_DISTDIR}/${file} ${PREFIX}/lib/X11/wdm/pixmaps
.endfor
.if defined(WITH_PAM)
.if ( ${OSVERSION} >= 500028 )
${INSTALL_DATA} ${FILESDIR}/wdm.pam ${LOCALBASE}/etc/pam.d/wdm
.else
@${ECHO_CMD} "To finish installing this port, append the contents of ${FILESDIR}/wdm.pam to your /etc/pam.conf file"
.endif
.endif
.include <bsd.port.post.mk>
|