diff options
author | nork <nork@FreeBSD.org> | 2003-07-12 02:33:56 +0800 |
---|---|---|
committer | nork <nork@FreeBSD.org> | 2003-07-12 02:33:56 +0800 |
commit | 7ee37c9c1effed38e1978ac6ce64b218fc3375b7 (patch) | |
tree | 96fe4ba49e546ebb6bc23d0052abeae0befa685b /x11/wdm/Makefile | |
parent | 73dda3124346c56f235485900adaff0f2e665046 (diff) | |
download | freebsd-ports-gnome-7ee37c9c1effed38e1978ac6ce64b218fc3375b7.tar.gz freebsd-ports-gnome-7ee37c9c1effed38e1978ac6ce64b218fc3375b7.tar.zst freebsd-ports-gnome-7ee37c9c1effed38e1978ac6ce64b218fc3375b7.zip |
Update to 1.25.
PR: ports/53108
Submitted by: Ports Fury
Approved by: maintainer timeout (1 month)
Diffstat (limited to 'x11/wdm/Makefile')
-rw-r--r-- | x11/wdm/Makefile | 112 |
1 files changed, 62 insertions, 50 deletions
diff --git a/x11/wdm/Makefile b/x11/wdm/Makefile index 67060ba67850..9d6941796c7b 100644 --- a/x11/wdm/Makefile +++ b/x11/wdm/Makefile @@ -6,8 +6,7 @@ # PORTNAME= wdm -PORTVERSION= 1.20 -PORTREVISION= 3 +PORTVERSION= 1.25 CATEGORIES= x11 windowmaker MASTER_SITES= http://voins.program.ru/wdm/ \ http://www.de.freebsd.org/de/gif/bsd/ \ @@ -15,93 +14,106 @@ MASTER_SITES= http://voins.program.ru/wdm/ \ MASTER_SITE_SUBDIR= tg DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${DAEMONPICS} EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} +DIST_SUBDIR= wdm MAINTAINER= kris@FreeBSD.org COMMENT= WINGs Display Manager; an xdm replacement -LIB_DEPENDS= wraster.4:${PORTSDIR}/x11-wm/windowmaker \ - PropList.2:${PORTSDIR}/devel/libPropList +LIB_DEPENDS= wraster.4:${PORTSDIR}/x11-wm/windowmaker -DIST_SUBDIR= wdm -USE_REINPLACE= yes +USE_BZIP2= 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}" \ +USE_REINPLACE= yes +GNU_CONFIGURE= yes +CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} +CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" \ DEF_SERVER="${DEF_SERVER}" CONFIGURE_ARGS= --with-logdir=/var/log \ --with-runlockdir=/var/run \ - --with-wdmdir=${PREFIX}/lib/X11/wdm \ + --with-wdmdir=${WDMDIR} \ + --with-gfxdir=${WDMDIR}/pixmaps \ + --with-nlsdir=${PREFIX}/share/locale \ --with-Logo=beastie.xpm \ - --with-gfx-incs=${X11BASE}/include/WINGs \ - --with-gfx-libs=${X11BASE}/lib \ + --with-gfx-incs=${LOCALBASE}/include \ + --with-gfx-libs=${LOCALBASE}/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> +MAN1= wdm.1 wdmLogin.1 -.if ${XFREE86_VERSION} == 4 -CFLAGS+= -DHAVE_XINERAMA -CONFIGURE_ENV+= LIBS="-Wl,-export-dynamic ${X11BASE}/lib/libXinerama.a" -.endif +CPPFLAGS= -I${LOCALBASE}/include -DCSRG_BASED -DHAS_SETUSERCONTEXT +LDFLAGS= -L${LOCALBASE}/lib -MAN1= wdm.1 wdmLogin.1 +DEF_SERVER?= ${X11BASE}/bin/X + +WDMDIR= ${PREFIX}/lib/X11/wdm DAEMONPICS= beastie.xpm daemon1-HQ-1280x960.jpg +.include <bsd.port.pre.mk> + .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 +CONFIGURE_ARGS+= --with-pamdir=${LOCALBASE}/etc/pam.d/ PLIST_SUB+= PAM="" .else PLIST_SUB+= PAM="@comment " +.endif + +.if !defined(WITH_PAM) +CONFIGURE_ARGS+= --disable-pam +.endif pre-everything:: - @${ECHO_MSG} "To build this port with PAM support, define \"WITH_PAM\"." +.if !defined(WITH_PAM) + @${ECHO_MSG} + @${ECHO_MSG} "If you want to compile with PAM support," + @${ECHO_MSG} "hit Ctrl-C right now and use \"make WITH_PAM=yes\"" + @${ECHO_MSG} .endif post-patch: - @${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/doc/*.man + @${REINPLACE_CMD} -e 's|$$(DESTDIR)$$(PAMDIR)/wdm||g ; \ + s| -D | |g' ${WRKSRC}/Makefile.in + @${REINPLACE_CMD} -e 's|-ldl||g ; \ + s|/authdir||g' ${WRKSRC}/configure + @${REINPLACE_CMD} -e \ + 's|@FAILSAFE@|@FAILSAFE_PATH@|g' ${WRKSRC}/configs/Xsession.in + @${REINPLACE_CMD} -e \ + 's|#configdir#|${WDMDIR}|g' ${WRKSRC}/doc/wdm.man.in + @${REINPLACE_CMD} -e \ + 's|/etc/X11/wdm|${WDMDIR}|g' ${WRKSRC}/doc/wdmLogin.man + @${REINPLACE_CMD} -e \ + 's|<malloc\.h>|<stdlib.h>|g' ${WRKSRC}/src/TestLogin/TestLogin.c 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 + @${MKDIR} ${WDMDIR}/pixmaps +.if exists(${WDMDIR}/wdm-config) + ${MV} ${WDMDIR}/wdm-config ${WDMDIR}/wdm-config.preserve +.endif +.if exists(${WDMDIR}/Xsetup_0) + ${MV} ${WDMDIR}/Xsetup_0 ${WDMDIR}/Xsetup_0.preserve +.endif 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 + @${CP} ${WDMDIR}/wdm-config ${WDMDIR}/wdm-config.dist +.if exists(${WDMDIR}/wdm-config.preserve) + ${MV} ${WDMDIR}/wdm-config.preserve ${WDMDIR}/wdm-config +.endif + @${CP} ${WDMDIR}/Xsetup_0 ${WDMDIR}/Xsetup_0.dist +.if exists(${WDMDIR}/Xsetup_0.preserve) + ${MV} ${WDMDIR}/Xsetup_0.preserve ${WDMDIR}/Xsetup_0 +.endif .for file in ${DAEMONPICS} - @${INSTALL_DATA} ${_DISTDIR}/${file} ${PREFIX}/lib/X11/wdm/pixmaps + @${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/${file} ${WDMDIR}/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" + @${ECHO_MSG} "To finish installing this port, append the contents of" + @${ECHO_MSG} "${FILESDIR}/wdm.pam to your /etc/pam.conf file" .endif .endif |