r144 - /packages/gnash/branches/0.8.1/debian/rules

baby-guest at users.alioth.debian.org baby-guest at users.alioth.debian.org
Thu Aug 16 09:40:38 UTC 2007


Author: baby-guest
Date: Thu Aug 16 09:40:38 2007
New Revision: 144

URL: http://svn.debian.org/wsvn/?sc=1&rev=144
Log:
Modify rules to habdle pairs of widget+rendering engine


Modified:
    packages/gnash/branches/0.8.1/debian/rules

Modified: packages/gnash/branches/0.8.1/debian/rules
URL: http://svn.debian.org/wsvn/packages/gnash/branches/0.8.1/debian/rules?rev=144&op=diff
==============================================================================
--- packages/gnash/branches/0.8.1/debian/rules (original)
+++ packages/gnash/branches/0.8.1/debian/rules Thu Aug 16 09:40:38 2007
@@ -21,8 +21,8 @@
 	CFLAGS += -O2
 endif
 
-CFLAGS_AGG=$(CXXFLAGS) -DGNASHG_PNG=\\\"GnashG.agg.png\\\"
-CFLAGS_OPENGL=$(CXXFLAGS) -DGNASHG_PNG=\\\"GnashG.opengl.png\\\"
+CFLAGS_GTK_AGG=$(CXXFLAGS) -DGNASHG_PNG=\\\"GnashG.agg.png\\\"
+CFLAGS_KDE_OPENGL=$(CXXFLAGS) -DGNASHG_PNG=\\\"GnashG.opengl.png\\\"
 
 # shared library versions, option 1
 #version=2.0.5
@@ -60,13 +60,13 @@
 	cp libamf/README README.amf
 	touch $@
 
-config-agg: config-agg-stamp
-config-agg-stamp: setup
-	dh_testdir
-	@printf "\n == CONFIGURE GNASH/AGG ========================================= \n\n"
+config-gtk_agg: config-gtk_agg-stamp
+config-gtk_agg-stamp: setup
+	dh_testdir
+	@printf "\n == CONFIGURE GNASH/GTK+AGG ===================================== \n\n"
 	# In the future, I want to add LDFLAGS="-Wl,-z,defs"
-	test -e $@ || ( mkdir tmp-agg && cd tmp-agg && $(CURDIR)/configure \
-		CFLAGS="$(CFLAGS_AGG)" CXXFLAGS="$(CFLAGS_AGG)" \
+	test -e $@ || ( mkdir tmp-gtk_agg && cd tmp-gtk_agg && $(CURDIR)/configure \
+		CFLAGS="$(CFLAGS_GTK_AGG)" CXXFLAGS="$(CFLAGS_GTK_AGG)" \
 		--host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
 		--prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info \
 		--enable-mp3 --enable-plugin --enable-klash --enable-gui=GTK \
@@ -75,16 +75,16 @@
 		--enable-shared=yes --enable-static=yes --enable-sdk-install \
 		--disable-rpath --enable-lotsa-warnings --without-gcc-arch \
 	)
-	@printf "\n --------------------------------- End of CONFIGURE GNASH/AGG ---- \n\n"
-	touch $@
-
-config-opengl: config-opengl-stamp
-config-opengl-stamp: setup
-	dh_testdir
-	@printf "\n == CONFIGURE GNASH/OPENGL ======================================= \n\n"
+	@printf "\n ----------------------------- End of CONFIGURE GNASH/GTK+AGG ---- \n\n"
+	touch $@
+
+config-kde_opengl: config-kde_opengl-stamp
+config-kde_opengl-stamp: setup
+	dh_testdir
+	@printf "\n == CONFIGURE GNASH/KDE+OPENGL =================================== \n\n"
 	# In the future, I want to add LDFLAGS="-Wl,-z,defs"
-	test -e $@ || ( mkdir tmp-opengl && cd tmp-opengl && $(CURDIR)/configure \
-		CFLAGS="$(CFLAGS_OPENGL)" CXXFLAGS="$(CFLAGS_OPENGL)" \
+	test -e $@ || ( mkdir tmp-kde_opengl && cd tmp-kde_opengl && $(CURDIR)/configure \
+		CFLAGS="$(CFLAGS_KDE_OPENGL)" CXXFLAGS="$(CFLAGS_KDE_OPENGL)" \
 		--host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --disable-rpath \
 		--prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info \
 		--enable-mp3 --enable-plugin --enable-klash --enable-gui=KDE \
@@ -93,41 +93,41 @@
 		--enable-shared=yes --enable-static=yes --enable-sdk-install \
 		--disable-rpath --enable-lotsa-warnings --without-gcc-arch \
 	)
-	@printf "\n ------------------------------ End of CONFIGURE GNASH/OPENGL ---- \n\n"
+	@printf "\n -------------------------- End of CONFIGURE GNASH/KDE+OPENGL ---- \n\n"
 	touch $@
 
 # BUILD
 
 BUILD_VERSION = $(shell /bin/date --utc +%0Y%0m%0d)
 
-build: build-agg build-opengl
-
-build-agg: build-agg-stamp
-build-agg-stamp: config-agg
-	dh_testdir
-
-	@printf "\n == MAKE GNASH/AGG ============================================== \n\n"
-	test -e $@ || $(MAKE) -C tmp-agg VERSION="$(BUILD_VERSION).agg"
-	@printf "\n ------------------------------------- End of MAKE GNASH/AGG ---- \n\n"
-
-	@#@printf "\n == CHECK GNASH/AGG ============================================= \n\n"
-	@#-test -e $@ || $(MAKE) -C tmp-agg check
-	@#@printf "\n ------------------------------------ End of CHECK GNASH/AGG ---- \n\n"
-
-	touch $@
-
-build-opengl: build-opengl-stamp
-build-opengl-stamp: config-opengl
+build: build-gtk_agg build-kde_opengl
+
+build-gtk_agg: build-gtk_agg-stamp
+build-gtk_agg-stamp: config-gtk_agg
+	dh_testdir
+
+	@printf "\n == MAKE GNASH/GTK+AGG ========================================== \n\n"
+	test -e $@ || $(MAKE) -C tmp-gtk_agg VERSION="$(BUILD_VERSION).gtk_agg"
+	@printf "\n --------------------------------- End of MAKE GNASH/GTK+AGG ---- \n\n"
+
+	@#@printf "\n == CHECK GNASH/GTK+AGG ========================================= \n\n"
+	@#-test -e $@ || $(MAKE) -C tmp-gtk_agg check
+	@#@printf "\n -------------------------------- End of CHECK GNASH/GTK+AGG ---- \n\n"
+
+	touch $@
+
+build-kde_opengl: build-kde_opengl-stamp
+build-kde_opengl-stamp: config-kde_opengl
 	dh_testdir
 	#patch -p1 < debian/patches/klashg_png.patch
 
-	@printf "\n == MAKE GNASH/OPENGL =========================================== \n\n"
-	test -e $@ || $(MAKE) -C tmp-opengl VERSION="$(BUILD_VERSION).opengl"
-	@printf "\n ---------------------------------- End of MAKE GNASH/OPENGL ---- \n\n"
-
-	@#@printf "\n == CHECK GNASH/OPENGL ========================================== \n\n"
-	@#-test -e $@ || $(MAKE) -C tmp-opengl check
-	@#@printf "\n --------------------------------- End of CHECK GNASH/OPENGL ---- \n\n"
+	@printf "\n == MAKE GNASH/KDE+OPENGL ======================================= \n\n"
+	test -e $@ || $(MAKE) -C tmp-kde_opengl VERSION="$(BUILD_VERSION).kde_opengl"
+	@printf "\n ------------------------------ End of MAKE GNASH/KDE+OPENGL ---- \n\n"
+
+	@#@printf "\n == CHECK GNASH/KDE+OPENGL ====================================== \n\n"
+	@#-test -e $@ || $(MAKE) -C tmp-kde_opengl check
+	@#@printf "\n ----------------------------- End of CHECK GNASH/KDE+OPENGL ---- \n\n"
 
 	#patch -p1 -R < debian/patches/klashg_png.patch
 	touch $@
@@ -170,6 +170,7 @@
 	$(MAKE) -f /usr/share/quilt/quilt.make unpatch
 	@printf "\n ----------------------------------- End of CLEANING PATCHES ---- \n\n"
 
+	rm -f debian/gui.tgz
 	rm -rf debian/gui
 	dh_clean 
 
@@ -181,22 +182,26 @@
 	dh_clean -k 
 	dh_installdirs
 
-	@printf "\n == INSTALL GNASH/AGG =========================================== \n\n"
-	$(MAKE) install -C tmp-agg DESTDIR=$(CURDIR)/debian/tmp-agg
-	@printf "\n ---------------------------------- End of INSTALL GNASH/AGG ---- \n\n"
-
-	@printf "\n == INSTALL GNASH/OPENGL ======================================== \n\n"
-	$(MAKE) install -C tmp-opengl DESTDIR=$(CURDIR)/debian/tmp-opengl
-	@printf "\n ------------------------------- End of INSTALL GNASH/OPENGL ---- \n\n"
-
-	for i in $(CURDIR)/debian/tmp-{agg,opengl}/usr/bin/* ; do \
-		echo "Removing rpath from \"$$i\"" ; \
-		chrpath --delete "$$i" ; \
+	@printf "\n == INSTALL GNASH/GTK+AGG ======================================= \n\n"
+	$(MAKE) install -C tmp-gtk_agg DESTDIR=$(CURDIR)/debian/tmp-gtk_agg
+	@printf "\n ------------------------------ End of INSTALL GNASH/GTK+AGG ---- \n\n"
+
+	@printf "\n == INSTALL GNASH/KDE+OPENGL ==================================== \n\n"
+	$(MAKE) install -C tmp-kde_opengl DESTDIR=$(CURDIR)/debian/tmp-kde_opengl
+	@printf "\n --------------------------- End of INSTALL GNASH/KDE+OPENGL ---- \n\n"
+
+	for t in gtk_agg kde_opengl; do \
+		for i in $(CURDIR)/debian/tmp-$$t/usr/bin/*; do \
+			echo "Removing rpath from \"$$i\"" ; \
+			chrpath --delete "$$i" ; \
+		done \
 	done
 
-	for i in $(CURDIR)/debian/tmp-{agg,opengl}/usr/lib/{*.so.*,*-*.so} ; do \
-		echo "Removing rpath from \"$$i\"" ; \
-		chrpath --delete "$$i" ; \
+	for t in gtk_agg kde_opengl; do \
+		for i in $(CURDIR)/debian/tmp-$$t/usr/lib/{*.so.*,*-*.so} ; do \
+			echo "Removing rpath from \"$$i\"" ; \
+			chrpath --delete "$$i" ; \
+		done \
 	done
 
 	#cd debian/h2m; $(MAKE)




More information about the pkg-flash-devel mailing list