Lines 6-13
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= wdm |
8 |
PORTNAME= wdm |
9 |
PORTVERSION= 1.20 |
9 |
PORTVERSION= 1.25 |
10 |
PORTREVISION= 3 |
|
|
11 |
CATEGORIES= x11 windowmaker |
10 |
CATEGORIES= x11 windowmaker |
12 |
MASTER_SITES= http://voins.program.ru/wdm/ \ |
11 |
MASTER_SITES= http://voins.program.ru/wdm/ \ |
13 |
http://www.de.freebsd.org/de/gif/bsd/ \ |
12 |
http://www.de.freebsd.org/de/gif/bsd/ \ |
Lines 15-107
Link Here
|
15 |
MASTER_SITE_SUBDIR= tg |
14 |
MASTER_SITE_SUBDIR= tg |
16 |
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${DAEMONPICS} |
15 |
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${DAEMONPICS} |
17 |
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} |
16 |
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} |
|
|
17 |
DIST_SUBDIR= wdm |
18 |
|
18 |
|
19 |
MAINTAINER= kris@FreeBSD.org |
19 |
MAINTAINER= kris@FreeBSD.org |
20 |
COMMENT= WINGs Display Manager; an xdm replacement |
20 |
COMMENT= WINGs Display Manager; an xdm replacement |
21 |
|
21 |
|
22 |
LIB_DEPENDS= wraster.4:${PORTSDIR}/x11-wm/windowmaker \ |
22 |
LIB_DEPENDS= wraster.4:${PORTSDIR}/x11-wm/windowmaker |
23 |
PropList.2:${PORTSDIR}/devel/libPropList |
|
|
24 |
|
23 |
|
25 |
DIST_SUBDIR= wdm |
24 |
USE_BZIP2= yes |
26 |
USE_REINPLACE= yes |
|
|
27 |
USE_X_PREFIX= yes |
25 |
USE_X_PREFIX= yes |
28 |
USE_AUTOMAKE_VER=14 |
26 |
USE_REINPLACE= yes |
29 |
AUTOMAKE_ARGS= --include-deps |
27 |
GNU_CONFIGURE= yes |
30 |
DEF_SERVER?= ${X11BASE}/bin/X |
28 |
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} |
31 |
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include \ |
29 |
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" \ |
32 |
-DCSRG_BASED -DHAS_SETUSERCONTEXT" \ |
|
|
33 |
LIBS="-L${LOCALBASE}/lib ${LIBPAM}" \ |
34 |
DEF_SERVER="${DEF_SERVER}" |
30 |
DEF_SERVER="${DEF_SERVER}" |
35 |
CONFIGURE_ARGS= --with-logdir=/var/log \ |
31 |
CONFIGURE_ARGS= --with-logdir=/var/log \ |
36 |
--with-runlockdir=/var/run \ |
32 |
--with-runlockdir=/var/run \ |
37 |
--with-wdmdir=${PREFIX}/lib/X11/wdm \ |
33 |
--with-wdmdir=${WDMDIR} \ |
|
|
34 |
--with-gfxdir=${WDMDIR}/pixmaps \ |
35 |
--with-nlsdir=${PREFIX}/share/locale \ |
38 |
--with-Logo=beastie.xpm \ |
36 |
--with-Logo=beastie.xpm \ |
39 |
--with-gfx-incs=${X11BASE}/include/WINGs \ |
37 |
--with-gfx-incs=${LOCALBASE}/include \ |
40 |
--with-gfx-libs=${X11BASE}/lib \ |
38 |
--with-gfx-libs=${LOCALBASE}/lib \ |
41 |
--with-defuserpath=/bin:/usr/bin:/sbin:/usr/sbin:${X11BASE}/bin:${LOCALBASE}/bin \ |
39 |
--with-defuserpath=/bin:/usr/bin:/sbin:/usr/sbin:${X11BASE}/bin:${LOCALBASE}/bin \ |
42 |
--with-defsystempath=/bin:/usr/bin:/sbin:/usr/sbin:${X11BASE}/bin \ |
40 |
--with-defsystempath=/bin:/usr/bin:/sbin:/usr/sbin:${X11BASE}/bin \ |
43 |
--with-wmlist=wmaker:afterstep:blackbox:ctwm:enlightenment:fvwm:fvwm2:fvwm95:olvwm:qvwm:tvtwm |
41 |
--with-wmlist=wmaker:afterstep:blackbox:ctwm:enlightenment:fvwm:fvwm2:fvwm95:olvwm:qvwm:tvtwm |
44 |
|
42 |
|
45 |
.include <bsd.port.pre.mk> |
43 |
MAN1= wdm.1 wdmLogin.1 |
46 |
|
44 |
|
47 |
.if ${XFREE86_VERSION} == 4 |
45 |
CPPFLAGS= -I${LOCALBASE}/include -DCSRG_BASED -DHAS_SETUSERCONTEXT |
48 |
CFLAGS+= -DHAVE_XINERAMA |
46 |
LDFLAGS= -L${LOCALBASE}/lib |
49 |
CONFIGURE_ENV+= LIBS="-Wl,-export-dynamic ${X11BASE}/lib/libXinerama.a" |
|
|
50 |
.endif |
51 |
|
47 |
|
52 |
MAN1= wdm.1 wdmLogin.1 |
48 |
DEF_SERVER?= ${X11BASE}/bin/X |
|
|
49 |
|
50 |
WDMDIR= ${PREFIX}/lib/X11/wdm |
53 |
|
51 |
|
54 |
DAEMONPICS= beastie.xpm daemon1-HQ-1280x960.jpg |
52 |
DAEMONPICS= beastie.xpm daemon1-HQ-1280x960.jpg |
55 |
|
53 |
|
|
|
54 |
.include <bsd.port.pre.mk> |
55 |
|
56 |
.if ( ${OSVERSION} >= 500028 ) && !defined(WITHOUT_PAM) |
56 |
.if ( ${OSVERSION} >= 500028 ) && !defined(WITHOUT_PAM) |
57 |
WITH_PAM= yes |
57 |
WITH_PAM= yes |
58 |
.endif |
58 |
CONFIGURE_ARGS+= --with-pamdir=${LOCALBASE}/etc/pam.d/ |
59 |
|
|
|
60 |
.if defined(WITH_PAM) |
61 |
CONFIGURE_ARGS+= --enable-pam --with-pamdir=${LOCALBASE}/etc/pam.d/ |
62 |
LIBPAM= -lpam |
63 |
PLIST_SUB+= PAM="" |
59 |
PLIST_SUB+= PAM="" |
64 |
.else |
60 |
.else |
65 |
PLIST_SUB+= PAM="@comment " |
61 |
PLIST_SUB+= PAM="@comment " |
|
|
62 |
.endif |
63 |
|
64 |
.if !defined(WITH_PAM) |
65 |
CONFIGURE_ARGS+= --disable-pam |
66 |
.endif |
66 |
|
67 |
|
67 |
pre-everything:: |
68 |
pre-everything:: |
68 |
@${ECHO_MSG} "To build this port with PAM support, define \"WITH_PAM\"." |
69 |
.if !defined(WITH_PAM) |
|
|
70 |
@${ECHO_MSG} |
71 |
@${ECHO_MSG} "If you want to compile with PAM support," |
72 |
@${ECHO_MSG} "hit Ctrl-C right now and use \"make WITH_PAM=yes\"" |
73 |
@${ECHO_MSG} |
69 |
.endif |
74 |
.endif |
70 |
|
75 |
|
71 |
post-patch: |
76 |
post-patch: |
72 |
@${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/doc/*.man |
77 |
@${REINPLACE_CMD} -e 's|$$(DESTDIR)$$(PAMDIR)/wdm||g ; \ |
|
|
78 |
s| -D | |g' ${WRKSRC}/Makefile.in |
79 |
@${REINPLACE_CMD} -e 's|-ldl||g ; \ |
80 |
s|/authdir||g' ${WRKSRC}/configure |
81 |
@${REINPLACE_CMD} -e \ |
82 |
's|@FAILSAFE@|@FAILSAFE_PATH@|g' ${WRKSRC}/configs/Xsession.in |
83 |
@${REINPLACE_CMD} -e \ |
84 |
's|#configdir#|${WDMDIR}|g' ${WRKSRC}/doc/wdm.man.in |
85 |
@${REINPLACE_CMD} -e \ |
86 |
's|/etc/X11/wdm|${WDMDIR}|g' ${WRKSRC}/doc/wdmLogin.man |
87 |
@${REINPLACE_CMD} -e \ |
88 |
's|<malloc\.h>|<stdlib.h>|g' ${WRKSRC}/src/TestLogin/TestLogin.c |
73 |
|
89 |
|
74 |
pre-install: |
90 |
pre-install: |
75 |
@if [ -e ${PREFIX}/lib/X11/wdm/wdm-config ]; then \ |
91 |
@${MKDIR} ${WDMDIR}/pixmaps |
76 |
${MV} ${PREFIX}/lib/X11/wdm/wdm-config \ |
92 |
.if exists(${WDMDIR}/wdm-config) |
77 |
${PREFIX}/lib/X11/wdm/wdm-config.preserve; \ |
93 |
${MV} ${WDMDIR}/wdm-config ${WDMDIR}/wdm-config.preserve |
78 |
fi |
94 |
.endif |
79 |
@if [ -e ${PREFIX}/lib/X11/wdm/Xsetup_0 ]; then \ |
95 |
.if exists(${WDMDIR}/Xsetup_0) |
80 |
${MV} ${PREFIX}/lib/X11/wdm/Xsetup_0 \ |
96 |
${MV} ${WDMDIR}/Xsetup_0 ${WDMDIR}/Xsetup_0.preserve |
81 |
${PREFIX}/lib/X11/wdm/Xsetup_0.preserve; \ |
97 |
.endif |
82 |
fi |
|
|
83 |
|
98 |
|
84 |
post-install: |
99 |
post-install: |
85 |
@${CP} ${PREFIX}/lib/X11/wdm/wdm-config \ |
100 |
@${CP} ${WDMDIR}/wdm-config ${WDMDIR}/wdm-config.dist |
86 |
${PREFIX}/lib/X11/wdm/wdm-config.dist |
101 |
.if exists(${WDMDIR}/wdm-config.preserve) |
87 |
@if [ -e ${PREFIX}/lib/X11/wdm/wdm-config.preserve ]; then \ |
102 |
${MV} ${WDMDIR}/wdm-config.preserve ${WDMDIR}/wdm-config |
88 |
${MV} ${PREFIX}/lib/X11/wdm/wdm-config.preserve \ |
103 |
.endif |
89 |
${PREFIX}/lib/X11/wdm/wdm-config; \ |
104 |
@${CP} ${WDMDIR}/Xsetup_0 ${WDMDIR}/Xsetup_0.dist |
90 |
fi |
105 |
.if exists(${WDMDIR}/Xsetup_0.preserve) |
91 |
@${CP} ${PREFIX}/lib/X11/wdm/Xsetup_0 \ |
106 |
${MV} ${WDMDIR}/Xsetup_0.preserve ${WDMDIR}/Xsetup_0 |
92 |
${PREFIX}/lib/X11/wdm/Xsetup_0.dist |
107 |
.endif |
93 |
@if [ -e ${PREFIX}/lib/X11/wdm/Xsetup_0.preserve ]; then \ |
|
|
94 |
${MV} ${PREFIX}/lib/X11/wdm/Xsetup_0.preserve \ |
95 |
${PREFIX}/lib/X11/wdm/Xsetup_0; \ |
96 |
fi |
97 |
.for file in ${DAEMONPICS} |
108 |
.for file in ${DAEMONPICS} |
98 |
@${INSTALL_DATA} ${_DISTDIR}/${file} ${PREFIX}/lib/X11/wdm/pixmaps |
109 |
@${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/${file} ${WDMDIR}/pixmaps |
99 |
.endfor |
110 |
.endfor |
100 |
.if defined(WITH_PAM) |
111 |
.if defined(WITH_PAM) |
101 |
.if ( ${OSVERSION} >= 500028 ) |
112 |
.if ( ${OSVERSION} >= 500028 ) |
102 |
${INSTALL_DATA} ${FILESDIR}/wdm.pam ${LOCALBASE}/etc/pam.d/wdm |
113 |
${INSTALL_DATA} ${FILESDIR}/wdm.pam ${LOCALBASE}/etc/pam.d/wdm |
103 |
.else |
114 |
.else |
104 |
@${ECHO_CMD} "To finish installing this port, append the contents of ${FILESDIR}/wdm.pam to your /etc/pam.conf file" |
115 |
@${ECHO_MSG} "To finish installing this port, append the contents of" |
|
|
116 |
@${ECHO_MSG} "${FILESDIR}/wdm.pam to your /etc/pam.conf file" |
105 |
.endif |
117 |
.endif |
106 |
.endif |
118 |
.endif |
107 |
|
119 |
|