-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
github-actions
committed
Dec 9, 2024
1 parent
236c912
commit ad53d5e
Showing
2 changed files
with
40 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,14 +2,12 @@ include $(TOPDIR)/rules.mk | |
|
||
PKG_NAME:=vlmcsd | ||
PKG_VERSION:=svn1113 | ||
PKG_RELEASE:=3 | ||
PKG_RELEASE:=1 | ||
|
||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz | ||
PKG_SOURCE_URL:=https://codeload.github.com/Wind4/vlmcsd/tar.gz/$(PKG_VERSION)? | ||
PKG_HASH:=62f55c48f5de1249c2348ab6b96dabbe7e38899230954b0c8774efb01d9c42cc | ||
|
||
PKG_LICENSE:=MIT | ||
PKG_LICENSE_FILES:=LICENSE | ||
PKG_MAINTAINER:=fuyumi <[email protected]> | ||
|
||
PKG_BUILD_PARALLEL:=1 | ||
|
@@ -20,16 +18,17 @@ define Package/vlmcsd | |
SECTION:=net | ||
CATEGORY:=Network | ||
TITLE:=vlmcsd for OpenWRT | ||
URL:=http://forums.mydigitallife.info/threads/50234 | ||
DEPENDS:=+libpthread | ||
endef | ||
|
||
define Package/vlmcsd/description | ||
vlmcsd is a KMS Emulator in C. | ||
endef | ||
|
||
MAKE_FLAGS += \ | ||
-C $(PKG_BUILD_DIR) | ||
define Build/Prepare | ||
$(call Build/Prepare/Default) | ||
rm $(PKG_BUILD_DIR)/GNUmakefile | ||
endef | ||
|
||
define Package/vlmcsd/install | ||
$(INSTALL_DIR) $(1)/usr/bin | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
SRCDIR := src | ||
BINDIR := bin | ||
OBJDIR := build | ||
|
||
TARGETS := $(BINDIR)/vlmcs $(BINDIR)/vlmcsd | ||
|
||
.PHONY: all | ||
all: $(BINDIR) $(TARGETS) | ||
|
||
$(BINDIR)/vlmcs: $(OBJDIR)/vlmcs.o $(OBJDIR)/kmsdata-full.o $(OBJDIR)/crypto.o \ | ||
$(OBJDIR)/kms.o $(OBJDIR)/endian.o $(OBJDIR)/output.o \ | ||
$(OBJDIR)/shared_globals.o $(OBJDIR)/helpers.o \ | ||
$(OBJDIR)/network.o $(OBJDIR)/rpc.o \ | ||
$(OBJDIR)/crypto_internal.o $(OBJDIR)/dns_srv.o | ||
$(CC) $(LDFLAGS) -o $@ $^ | ||
|
||
$(BINDIR)/vlmcsd: $(OBJDIR)/vlmcsd.o $(OBJDIR)/kmsdata.o $(OBJDIR)/crypto.o \ | ||
$(OBJDIR)/kms.o $(OBJDIR)/endian.o $(OBJDIR)/output.o \ | ||
$(OBJDIR)/shared_globals.o $(OBJDIR)/helpers.o \ | ||
$(OBJDIR)/network.o $(OBJDIR)/rpc.o \ | ||
$(OBJDIR)/crypto_internal.o | ||
$(CC) $(LDFLAGS) -o $@ $^ | ||
|
||
$(OBJDIR)/%.o: $(SRCDIR)/%.c | $(OBJDIR) | ||
$(CC) $(CFLAGS) -c $< -o $@ | ||
|
||
$(OBJDIR): | ||
@mkdir -p $(OBJDIR) | ||
|
||
$(BINDIR): | ||
@mkdir -p $(BINDIR) | ||
|
||
.PHONY: clean | ||
clean: | ||
@rm -rf $(OBJDIR) $(BINDIR) |