Subject: pkg/15450: new package for neXtaw
To: None <gnats-bugs@gnats.netbsd.org>
From: None <kpn@neutralgood.org>
List: netbsd-bugs
Date: 01/31/2002 22:27:06
>Number:         15450
>Category:       pkg
>Synopsis:       new package submission for neXtaw.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Thu Jan 31 19:29:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Kevin P. Neal
>Release:        NetBSD 1.5.2
>Organization:
-- 
Kevin P. Neal                                http://www.pobox.com/~kpn/

"You know, I think I can hear the machine screaming from here...  \
'help me! hellpp meeee!'"  - Heather Flanagan, 14:52:23 Wed Jun 10 1998
>Environment:


>Description:

There is package for neXtaw in pkgsrc. 

>How-To-Repeat:

Look for it.

>Fix:

Package provided below, along with a patch to have XAW_TYPE=neXtaw
recognized. 

I'm providing a buildlink makefile even though I'm not sure how
to get it to do what I want. Now, neXtaw is supposed to be a drop-in
replacement for libXaw. Yet neXtaw puts it's include files in a
subdirectory named "X11/neXtaw". Also, the library is named
"libneXtaw.*". How do I get the buildlink to create the normal tree
for neXtaw stuff but also put in symlinks so includes of <X11/Xaw/*>
will pull in neXtaw instead (-lXaw does -lneXtaw instead, etc)?

--- xaw.buildlink.mk.old	Thu Aug 23 00:24:21 2001
+++ xaw.buildlink.mk	Thu Jan 31 00:27:18 2002
@@ -1,4 +1,4 @@
-# $NetBSD$
+# $NetBSD:$
 #
 # This Makefile fragment is included by packages that use Xaw.
 #
@@ -18,6 +18,8 @@
 .include "../../x11/Xaw-Xpm/buildlink.mk"
 .elif ${XAW_TYPE} == "3d"
 .include "../../x11/Xaw3d/buildlink.mk"
+.elif ${XAW_TYPE} == "neXtaw"
+.include "../../x11/neXtaw/buildlink.mk"
 .else
 LIBXAW?=	-L${BUILDLINK_X11_DIR}/lib -lXaw
 MAKE_ENV+=	LIBXAW="${LIBXAW}"




# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	neXtaw
#	neXtaw/Makefile
#	neXtaw/buildlink.mk
#	neXtaw/distinfo
#	neXtaw/DESCR
#	neXtaw/PLIST
#
echo c - neXtaw
mkdir -p neXtaw > /dev/null 2>&1
echo x - neXtaw/Makefile
sed 's/^X//' >neXtaw/Makefile << 'END-of-neXtaw/Makefile'
X# $NetBSD:$
X
XDISTNAME=       neXtaw-0.10
XCATEGORIES=     x11
XMASTER_SITES=   http://siag.nu/pub/neXtaw/
X
XMAINTAINER=     packages@netbsd.org
XHOMEPAGE=       http://siag.nu/neXtaw/
XCOMMENT=        NeXTstep-like widgets based on the Athena Widget set
X
XGNU_CONFIGURE=  yes
X# XXX On NetBSD/alpha 1.5.2 gcc has an optimization bug.
X.if ${OPSYS} == "NetBSD"
X.  if (${MACHINE_ARCH} == "alpha")
XCONFIGURE_ENV+= CFLAGS=""
X.  endif
X.endif
X
XPLIST_SRC=      ${WRKDIR}/PLIST-src
X
X.include "../../mk/bsd.prefs.mk"
X
XEXAMPLE_FILES_DIR=share/doc/neXtaw/app-defaults
XEXAMPLE_FILES=00-README Bitmap Bitmap-color Editres Editres-color Emacs  \
X	Fig GXditview Ghostview XCalc XClipboard XClock XConsole  \
X	XFontSel XGrab XLoad XPaint XTerm Xdefaults Xedit Xfd Xgc \
X	Xloadimage Xmag Xman Xmessage Xmh Xvidtune
X
Xpost-install:
X	${CP} ${PKGDIR}/PLIST ${PLIST_SRC}
X	${INSTALL_DATA_DIR} ${PREFIX}/share/doc/neXtaw
X	${INSTALL_DATA_DIR} ${PREFIX}/share/doc/neXtaw/app-defaults
X	${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/neXtaw
X	${INSTALL_DATA} ${WRKSRC}/doc/README.XAW3D ${PREFIX}/share/doc/neXtaw
X	${INSTALL_DATA} ${WRKSRC}/doc/FAQ ${PREFIX}/share/doc/neXtaw
X.for filename in ${EXAMPLE_FILES}
X	${INSTALL_DATA} ${WRKSRC}/doc/app-defaults/${filename} ${PREFIX}/${EXAMPLE_FILES_DIR}/${filename}
X	${ECHO} ${EXAMPLE_FILES_DIR}/${filename} >>${PLIST_SRC}
X.endfor
X	cd ${PREFIX} && ${LS} lib/libneXtaw* >>${PLIST_SRC}
X
X.include "../../mk/x11.buildlink.mk"
X.include "../../mk/bsd.pkg.mk"
X
END-of-neXtaw/Makefile
echo x - neXtaw/buildlink.mk
sed 's/^X//' >neXtaw/buildlink.mk << 'END-of-neXtaw/buildlink.mk'
X# $NetBSD:$
X#
X# This Makefile fragment is included by packages that use neXtaw.
X#
X# To use this Makefile fragment, simply:
X#
X# (1) Optionally define BUILDLINK_DEPENDS.neXtaw to the dependency pattern
X#     for the version of neXtaw desired.
X# (2) Include this Makefile fragment in the package Makefile,
X# (3) Add ${BUILDLINK_DIR}/include to the front of the C preprocessor's header
X#     search path, and
X# (4) Add ${BUILDLINK_DIR}/lib to the front of the linker's library search
X#     path.
X
X.if !defined(NEXTAW_BUILDLINK_MK)
XNEXTAW_BUILDLINK_MK=	# defined
X
X.include "../../mk/bsd.buildlink.mk"
X
XBUILDLINK_DEPENDS.neXtaw?=	neXtaw-0.10
XDEPENDS+=	${BUILDLINK_DEPENDS.neXtaw}:../../x11/neXtaw
X
XEVAL_PREFIX+=			BUILDLINK_PREFIX.neXtaw=neXtaw
XBUILDLINK_PREFIX.neXtaw_DEFAULT=	${X11PREFIX}
XBUILDLINK_FILES.neXtaw=	include/X11/neXtaw/*
XBUILDLINK_FILES.neXtaw+=	lib/libneXtaw.*
X
XBUILDLINK_TARGETS.neXtaw+=	neXtaw-buildlink
XBUILDLINK_TARGETS+=		${BUILDLINK_TARGETS.neXtaw}
X
XLIBXAW?=	-L${BUILDLINK_DIR}/lib -L${BUILDLINK_X11_DIR}/lib -lneXtaw 
XMAKE_ENV+=	LIBXAW="${LIBXAW}"
X
Xpre-configure: ${BUILDLINK_TARGETS.neXtaw}
XneXtaw-buildlink: _BUILDLINK_USE
X
X.endif	# NEXTAW_BUILDLINK_MK
END-of-neXtaw/buildlink.mk
echo x - neXtaw/distinfo
sed 's/^X//' >neXtaw/distinfo << 'END-of-neXtaw/distinfo'
X$NetBSD$
X
XSHA1 (neXtaw-0.10.tar.gz) = 0baa9bb4e53808ace37e25a20f605544e0f856e3
XSize (neXtaw-0.10.tar.gz) = 473638 bytes
END-of-neXtaw/distinfo
echo x - neXtaw/DESCR
sed 's/^X//' >neXtaw/DESCR << 'END-of-neXtaw/DESCR'
XThis is neXtaw, a modified version of the Athena Widgets with N*XTSTEP
Xappearance. It is based on the Xaw3d 1.5 library by Kaleb S. Keithley.
X
XThis is not a magic library which will beautify all your apps instantly.
XBut with some .Xdefaults fiddling you can make Athena applications look,
Xand sometimes behave, much better.
END-of-neXtaw/DESCR
echo x - neXtaw/PLIST
sed 's/^X//' >neXtaw/PLIST << 'END-of-neXtaw/PLIST'
X@comment $NetBSD:$
Xshare/doc/neXtaw/README
Xshare/doc/neXtaw/README.XAW3D
Xshare/doc/neXtaw/FAQ
Xinclude/X11/neXtaw/AllWidgets.h
Xinclude/X11/neXtaw/AsciiSink.h
Xinclude/X11/neXtaw/AsciiSinkP.h
Xinclude/X11/neXtaw/AsciiSrc.h
Xinclude/X11/neXtaw/AsciiSrcP.h
Xinclude/X11/neXtaw/AsciiText.h
Xinclude/X11/neXtaw/AsciiTextP.h
Xinclude/X11/neXtaw/Box.h
Xinclude/X11/neXtaw/BoxP.h
Xinclude/X11/neXtaw/Cardinals.h
Xinclude/X11/neXtaw/Clock.h
Xinclude/X11/neXtaw/ClockP.h
Xinclude/X11/neXtaw/Command.h
Xinclude/X11/neXtaw/CommandP.h
Xinclude/X11/neXtaw/Dialog.h
Xinclude/X11/neXtaw/DialogP.h
Xinclude/X11/neXtaw/Form.h
Xinclude/X11/neXtaw/FormP.h
Xinclude/X11/neXtaw/Grip.h
Xinclude/X11/neXtaw/GripP.h
Xinclude/X11/neXtaw/Label.h
Xinclude/X11/neXtaw/LabelP.h
Xinclude/X11/neXtaw/Layout.h
Xinclude/X11/neXtaw/LayoutP.h
Xinclude/X11/neXtaw/List.h
Xinclude/X11/neXtaw/ListP.h
Xinclude/X11/neXtaw/MenuButtoP.h
Xinclude/X11/neXtaw/MenuButton.h
Xinclude/X11/neXtaw/Misc.h
Xinclude/X11/neXtaw/MultiSink.h
Xinclude/X11/neXtaw/MultiSinkP.h
Xinclude/X11/neXtaw/MultiSrc.h
Xinclude/X11/neXtaw/MultiSrcP.h
Xinclude/X11/neXtaw/Paned.h
Xinclude/X11/neXtaw/PanedP.h
Xinclude/X11/neXtaw/Panner.h
Xinclude/X11/neXtaw/PannerP.h
Xinclude/X11/neXtaw/Porthole.h
Xinclude/X11/neXtaw/PortholeP.h
Xinclude/X11/neXtaw/Repeater.h
Xinclude/X11/neXtaw/RepeaterP.h
Xinclude/X11/neXtaw/Reports.h
Xinclude/X11/neXtaw/Scrollbar.h
Xinclude/X11/neXtaw/ScrollbarP.h
Xinclude/X11/neXtaw/Simple.h
Xinclude/X11/neXtaw/SimpleMenP.h
Xinclude/X11/neXtaw/SimpleMenu.h
Xinclude/X11/neXtaw/SimpleP.h
Xinclude/X11/neXtaw/Sme.h
Xinclude/X11/neXtaw/SmeBSB.h
Xinclude/X11/neXtaw/SmeBSBP.h
Xinclude/X11/neXtaw/SmeLine.h
Xinclude/X11/neXtaw/SmeLineP.h
Xinclude/X11/neXtaw/SmeP.h
Xinclude/X11/neXtaw/SmeThreeD.h
Xinclude/X11/neXtaw/SmeThreeDP.h
Xinclude/X11/neXtaw/StripCharP.h
Xinclude/X11/neXtaw/StripChart.h
Xinclude/X11/neXtaw/Text.h
Xinclude/X11/neXtaw/TextP.h
Xinclude/X11/neXtaw/TextSink.h
Xinclude/X11/neXtaw/TextSinkP.h
Xinclude/X11/neXtaw/TextSrc.h
Xinclude/X11/neXtaw/TextSrcP.h
Xinclude/X11/neXtaw/ThreeD.h
Xinclude/X11/neXtaw/ThreeDP.h
Xinclude/X11/neXtaw/Toggle.h
Xinclude/X11/neXtaw/ToggleP.h
Xinclude/X11/neXtaw/Tree.h
Xinclude/X11/neXtaw/TreeP.h
Xinclude/X11/neXtaw/VendorEP.h
Xinclude/X11/neXtaw/Viewport.h
Xinclude/X11/neXtaw/ViewportP.h
Xinclude/X11/neXtaw/XawAlloc.h
Xinclude/X11/neXtaw/XawI18n.h
Xinclude/X11/neXtaw/XawImP.h
Xinclude/X11/neXtaw/XawInit.h
Xinclude/X11/neXtaw/laygram.h
X@dirrm share/doc/neXtaw/app-defaults
X@dirrm share/doc/neXtaw
X@dirrm include/X11/neXtaw
END-of-neXtaw/PLIST
exit

>Release-Note:
>Audit-Trail:
>Unformatted: