summaryrefslogtreecommitdiffstats
path: root/rules/serdisplib.make
blob: 24b14ea2c0ae8023c2b679a9a110918de7f9376d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# -*-makefile-*-
#
# Copyright (C) 2011 by Bernhard Walle <bernhard@bwalle.de>
#
# See CREDITS for details about who has contributed to this project.
#
# For further information about the PTXdist project and license conditions
# see the README file.
#

#
# We provide this package
#
PACKAGES-$(PTXCONF_SERDISPLIB) += serdisplib

#
# Paths and names
#
SERDISPLIB_VERSION	:= 1.97.9
SERDISPLIB_MD5		:= 130552ec60d01e974712a60274f34de7
SERDISPLIB		:= serdisplib-$(SERDISPLIB_VERSION)
SERDISPLIB_SUFFIX	:= tar.gz
SERDISPLIB_URL		:= $(call ptx/mirror, SF, project/serdisplib/serdisplib/$(SERDISPLIB_VERSION)/$(SERDISPLIB).$(SERDISPLIB_SUFFIX))
SERDISPLIB_SOURCE	:= $(SRCDIR)/$(SERDISPLIB).$(SERDISPLIB_SUFFIX)
SERDISPLIB_DIR		:= $(BUILDDIR)/$(SERDISPLIB)
SERDISPLIB_LICENSE	:= GPL


# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------

SERDISPLIB_CONF_ENV	:= \
	$(CROSS_ENV) \
	ac_cv_func_gdImageCreateTrueColor=no \
	ac_cv_func_SDL_SetVideoMode=no
#
# autoconf
#
SERDISPLIB_CONF_TOOL	:= autoconf
SERDISPLIB_CONF_OPT	:= \
	$(CROSS_AUTOCONF_USR) \
	--enable-libusb

# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------

$(STATEDIR)/serdisplib.targetinstall:
	@$(call targetinfo)

	@$(call install_init, serdisplib)
	@$(call install_fixup, serdisplib,PRIORITY,optional)
	@$(call install_fixup, serdisplib,SECTION,base)
	@$(call install_fixup, serdisplib,AUTHOR,"Bernhard Walle <bernhard@bwalle.de>")
	@$(call install_fixup, serdisplib,DESCRIPTION,missing)

	@$(call install_lib, serdisplib, 0, 0, 0644, libserdisp)

ifdef PTXCONF_SERDISPLIB_TESTSERDISP
	@$(call install_copy, serdisplib, 0, 0, 0755, -, /usr/bin/testserdisp)
endif

	@$(call install_finish, serdisplib)

	@$(call touch)

# vim: syntax=make