File: header-in-subdirectory.patch

package info (click to toggle)
portsmf 0.1~svn20101010-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,000 kB
  • sloc: cpp: 6,109; sh: 994; makefile: 39
file content (24 lines) | stat: -rw-r--r-- 777 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Description: Put header files into portSMF subdirectory to avoid name clashes.
Author: Benjamin Drung <bdrung@debian.org>
Bug-Debian: http://bugs.debian.org/621873

--- a/portSMF.pc.in
+++ b/portSMF.pc.in
@@ -9,4 +9,4 @@
 Version: 0.1
 
 Libs: -L${libdir} -lportSMF @LIBS@
-Cflags: -I${includedir}
+Cflags: -I${includedir}/portSMF
--- a/Makefile.am
+++ b/Makefile.am
@@ -24,7 +24,8 @@
 # but that would mean re-organising them here (a subdirectory called portSMF to
 # keep headers in, add -I$(srcdir)/portSMF/ to AM_CXXFLAGS, change the paths
 # to the headers here and change the name of the variable to nobase_include_...
-include_HEADERS = allegro.h \
+library_includedir = $(includedir)/portSMF
+library_include_HEADERS = allegro.h \
 	mfmidi.h \
 	strparse.h \
 	trace.h