File snack.patch of Package snack

--- unix/Makefile.in
+++ unix/Makefile.in
@@ -12,6 +12,7 @@
 
 # Install SNACK package here
 
+libdir = @libdir@
 SNACK_INSTALL_PATH = @SNACK_INSTALL_PATH@
 SNACK_HINSTALL_PATH = @SNACK_HINSTALL_PATH@
 
@@ -31,7 +32,7 @@
 
 INCLUDES  = ${XINCLUDES} @TCL_INCLUDE_SPEC@ -I${TCL_INCPATH} -I${TK_INCPATH} @AINC@ @NISTINC@
 
-CFLAGS    = -O @CFLAGS@ @AFLAG@ ${INCLUDES} @TCLAPI@ -I${GENERIC_DIR} @DEFS@
+CFLAGS    = ${OPTFLAGS} @CFLAGS@ @AFLAG@ ${INCLUDES} @TCLAPI@ -I${GENERIC_DIR} @DEFS@
 
 LIBSO     = -lc @ALIB@ @TCL_LIB_SPEC@
 
@@ -309,11 +310,11 @@
 	    chmod 755 ${DESTDIR}${SNACK_INSTALL_PATH}/snack${VERSION}; \
         else true; \
         fi;
-	cp -f libsound${SHLIB_SUFFIX} ${DESTDIR}${SNACK_INSTALL_PATH}/snack${VERSION}/
-	cp -f libsnack${SHLIB_SUFFIX} ${DESTDIR}${SNACK_INSTALL_PATH}/snack${VERSION}/
-	if test -f libsnackstub${VERSION}.a; then cp -f libsnackstub${VERSION}.a ${DESTDIR}${SNACK_INSTALL_PATH}/; fi
-	if test -f libsnacksphere${SHLIB_SUFFIX}; then cp -f libsnacksphere${SHLIB_SUFFIX} ${DESTDIR}${SNACK_INSTALL_PATH}/snack${VERSION}/; fi
-	if test -f libsnackogg${SHLIB_SUFFIX}; then cp -f libsnackogg${SHLIB_SUFFIX} ${DESTDIR}${SNACK_INSTALL_PATH}/snack${VERSION}/; fi
+	cp -f libsound${SHLIB_SUFFIX} ${DESTDIR}${libdir}
+	cp -f libsnack${SHLIB_SUFFIX} ${DESTDIR}${libdir}
+	if test -f libsnackstub${VERSION}.a; then cp -f libsnackstub${VERSION}.a ${DESTDIR}${libdir}; fi
+	if test -f libsnacksphere${SHLIB_SUFFIX}; then cp -f libsnacksphere${SHLIB_SUFFIX} ${DESTDIR}${libdir}; fi
+	if test -f libsnackogg${SHLIB_SUFFIX}; then cp -f libsnackogg${SHLIB_SUFFIX} ${DESTDIR}${libdir}; fi
 	cp -f $(UNIX_DIR)/snack.tcl ${DESTDIR}${SNACK_INSTALL_PATH}/snack${VERSION}/
 	cp -f pkgIndex.tcl ${DESTDIR}${SNACK_INSTALL_PATH}/snack${VERSION}/
 
--- unix/pkgIndex.tcl.dll
+++ unix/pkgIndex.tcl.dll
@@ -4,10 +4,10 @@
 # http://www.wjduquette.com/tcl/namespaces.html
 #
 
-package ifneeded snack 2.2 "[list load [file join $dir libsnack.dll]];[list source [file join $dir snack.tcl]]"
+package ifneeded snack 2.2 "[list load libsnack.dll];[list source [file join $dir snack.tcl]]"
 
-package ifneeded sound 2.2 [list load [file join $dir libsound.dll]]
+package ifneeded sound 2.2 [list load libsound.dll]
 
-package ifneeded snacksphere 1.2 [list load [file join $dir libsnacksphere.dll]]
+package ifneeded snacksphere 1.2 [list load libsnacksphere.dll]
 
-package ifneeded snackogg 1.3 [list load [file join $dir libsnackogg.dll]]
+package ifneeded snackogg 1.3 [list load libsnackogg.dll]