blob: c3d086ed0bcaf5122b23f770159d2b22c5b81035 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
BIRTHDAY_VERSION = 1.6.2-10
BIRTHDAY_SITE = https://salsa.debian.org/salvage-team/birthday/-/archive/debian/${BIRTHDAY_VERSION}
BIRTHDAY_SOURCE = birthday-debian-${BIRTHDAY_VERSION}.tar.gz
BIRTHDAY_LICENCE =
BIRTHDAY_LICENCE_FILES =
# NOTE: do not pass $(TARGET_CONFIGURE_OPTS) here: it sets CFLAGS on the make
# command line, which overrides the package Makefile's own
# "CFLAGS=-O2 -D$(OS) ..." and drops -DUNIX. Without -DUNIX, deffname() in
# bdengine.c has no return statement -> undefined behaviour / segfault.
define BIRTHDAY_BUILD_CMDS
$(MAKE) -C $(@D) \
CC="$(TARGET_CC)" \
CFLAGS="$(TARGET_CFLAGS) -DUNIX" \
LDFLAGS="$(TARGET_LDFLAGS)"
endef
define BIRTHDAY_INSTALL_TARGET_CMDS
$(INSTALL) -d $(TARGET_DIR)/usr/bin
$(TARGET_STRIP) $(@D)/birthday -o $(TARGET_DIR)/usr/bin/birthday
endef
$(eval $(generic-package))
|