Makefile.am
author Sam Lantinga <slouken@libsdl.org>
Fri, 07 Aug 2009 10:07:54 +0000
changeset 196 1d7af2dd0c17
parent 178 57dcb4f3081e
child 212 70b189221deb
permissions -rw-r--r--
Implemented bug #768

Description From Luca Bigliardi 2009-07-07 03:35:39 (-) [reply]

patch to add pkg-config for SDL_image

Hi,
I'm attaching two patches to add pkg-config support to SDL_image.

pkg-config is used to retrieve information about installed libraries and
it's well integrated with build configurators (for instance
PKG_CHECK_MODULES autoconf macro).

Thank you,

Luca
slouken@0
     1
# Makefile.am for the SDL sample image loading library and viewer
slouken@0
     2
slouken@0
     3
lib_LTLIBRARIES = libSDL_image.la
slouken@0
     4
slouken@0
     5
libSDL_imageincludedir = $(includedir)/SDL
slouken@0
     6
libSDL_imageinclude_HEADERS =	\
slouken@0
     7
	SDL_image.h
slouken@0
     8
slouken@0
     9
libSDL_image_la_SOURCES =		\
slouken@0
    10
	IMG.c			\
slouken@0
    11
	IMG_bmp.c		\
slouken@0
    12
	IMG_gif.c		\
slouken@0
    13
	IMG_jpg.c		\
slouken@45
    14
	IMG_lbm.c		\
slouken@0
    15
	IMG_pcx.c		\
slouken@0
    16
	IMG_png.c		\
slouken@25
    17
	IMG_pnm.c		\
slouken@0
    18
	IMG_tga.c		\
slouken@7
    19
	IMG_tif.c		\
slouken@26
    20
	IMG_xcf.c		\
slouken@119
    21
	IMG_xpm.c		\
slouken@119
    22
	IMG_xv.c
slouken@0
    23
slouken@0
    24
EXTRA_DIST =			\
slouken@0
    25
	CHANGES			\
slouken@164
    26
	version.rc		\
slouken@0
    27
	VisualC.zip		\
slouken@107
    28
	Xcode.tar.gz		\
slouken@30
    29
	MPWmake.sea.bin		\
slouken@136
    30
	Watcom-OS2.zip		\
slouken@0
    31
	IMG_xxx.c		\
slouken@37
    32
	SDL_image.spec		\
slouken@37
    33
	SDL_image.spec.in	\
slouken@131
    34
	gcc-fat.sh		\
slouken@0
    35
	autogen.sh
slouken@0
    36
slouken@164
    37
if USE_VERSION_RC
slouken@164
    38
libSDL_image_la_LDFLAGS = 	\
slouken@164
    39
	-no-undefined		\
slouken@164
    40
	-release $(LT_RELEASE)	\
slouken@164
    41
	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) -Wl,version.o
slouken@164
    42
libSDL_image_la_LIBADD = $(IMG_LIBS)
slouken@164
    43
libSDL_image_la_DEPENDENCIES = version.o
slouken@164
    44
else
slouken@94
    45
libSDL_image_la_LDFLAGS = 	\
slouken@94
    46
	-no-undefined		\
slouken@37
    47
	-release $(LT_RELEASE)	\
slouken@0
    48
	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
slouken@137
    49
libSDL_image_la_LIBADD = $(IMG_LIBS)
slouken@164
    50
endif
slouken@164
    51
slouken@196
    52
pkgconfigdir = $(libdir)/pkgconfig
slouken@196
    53
pkgconfig_DATA = SDL_image.pc
slouken@196
    54
slouken@164
    55
%.o : %.rc
slouken@164
    56
	$(WINDRES) $< $@
slouken@0
    57
slouken@77
    58
noinst_PROGRAMS = showimage
slouken@0
    59
slouken@0
    60
showimage_LDADD = libSDL_image.la
slouken@0
    61
slouken@0
    62
# Rule to build tar-gzipped distribution package
slouken@37
    63
$(PACKAGE)-$(VERSION).tar.gz: distcheck
slouken@0
    64
slouken@0
    65
# Rule to build RPM distribution package
slouken@0
    66
rpm: $(PACKAGE)-$(VERSION).tar.gz
slouken@178
    67
	rpmbuild -ta $(PACKAGE)-$(VERSION).tar.gz
slouken@0
    68